sends a request to load the specified number of records to the end of the client-side dataset or to the specified position
count | number | the number of records fetch |
start | number | the start position to load data from |
callback | function | the callback function |
url | string | the data url |
now | boolean | specifies whether the incoming data request should be satisfied immediately. If it's set to true the datathrottle property will be ignored. |
clear | boolean | if true, the current data are erased before new data are loaded |
promise | the result of a request |
$$("grida").loadNext(10,0,null,"data/data.php");
$$("grida").loadNext(10,0,null,"data/data.php").then(function(){
this.showItem(903);
});
The method returns a promise that:
$$("grida").loadNext(10,0,null,"data/data.php").then(function(data){
var json = data.json();
});
$$("grida").loadNext(10,0,null,"data/data.php").fail(function(){
// your code here
});
// catch is the Webix alias if fail()
$$("grida").loadNext(10,0,null,"data/data.php").catch(function(){
// your code here
});