onDataRequest
fires when data from the server is requested for DataGrid to implement dynamic data loading
function onDataRequest( // the position which data starts to be loaded from start: number, // the count of records that need loading count: number, // the method called after data loading callback?: function, // the data URL url?: string): void
Example
Section titled “Example”dgrid.attachEvent("onDataRequest", function (start, count) { var data = custom_load_data(start, count); dgrid.parse(data, "json"); return false; //cancelling default behavior});
Details
Section titled “Details”Dynamic loading is triggered during scrolling and paging.
The component will use the data source specified by its url property
or via the url
parameter passed to the load method.
See also
Section titled “See also”Articles