Hi, I have a data table to display data base values.On load of controller I am querying from data base and in call back of query method I am defining data to data table, but the data is not binding all the time,sometimes table displayed with empty values.Can anyone please help me out this?
Hi, could you please specify how do you define the data for the datatable? Does the data come from server?
Anyway, the best way for it is parsing:
$$('datatableId').clearAll(); //for repeated loading
$$('datatableId').parse(data_array);
I am defining data as :-
$$(‘datatableId’).clearAll(); //for repeated loading
$$(‘datatableId’).define(“data”,data_array);
$$(‘datatableId’).refresh();
Could you run such code (but with your serverside data) locally http://webix.com/snippet/4a870de8?
Will the data count and datatable height be positive?
Your code of data setting is also correct, but not the best practice.