hello,
I’m hoping someone can help me by pointing out my error / omission.
My scenario involves a datatable that loads records based on a user selecting a node in a tree. The datatable can have up to half a million records so pagination is a necessity. Because the table needs to load based on a user selection, i cannot use the usual url
parameter within the datatable definition, so I’m using dtable.load()
as below
dtable.load(function(){
return webix.ajax().post( url, postData)
});
with the postData
providing the necessary details of the user selection. The datatable loads the initial page but unfortunately I can’t get the datatable to automatically add the count
, start
parameters etc. so it doesn’t work correctly. I have other datatables within the application where i am able to use the url
parameter and those scenarios work as expected and desired with pagination and server side filtering and sorting.
Is there something obvious i’m doing wrong? Or is there a a more appropriate approach to loading potentially huge datasets into a paginated table on a user action? All the documents and examples I could find use the standard data loading on initialisation approach, which obviously cannot work for me.
Thanks for any and all assistance
-SrvrSide