loadNext

sends a request to load the specified number of records to the end of the client-side dataset or to the specified position

promise loadNext(number count,number start,function callback,string url,boolean now, [boolean clear] );
count
numberthe number of records fetch start
numberthe start position to load data from callback
functionthe callback function urlstringthe data url nowbooleanspecifies whether the incoming data request should be satisfied immediately. If it's set to true the datathrottle property will be ignored. clearbooleanif true, the current data are erased before new data are loaded
promisethe result of a request

Example

$$("grida").loadNext(10,0,null,"data/data.php");
 
$$("grida").loadNext(10,0,null,"data/data.php").then(function(){
    this.showItem(903);
});

Related samples

Details

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
});
See also
  • API
  • Articles
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
    If you have not checked yet, be sure to visit site of our main product Webix easy javascript framework and page of javascript chart library product.