Login Register

Client Side pagination

After you get the request object back you have the ten items, but how do you replace the existing store with the request items? I tried

in the missing code:

store = request.store;

but that didn't seem to do anything?

//Connect this function to the onClick event of the 'previous' button
    //Done through dojo.connect() generally.

    //Define how we handle the items when we get it
    var itemsLoaded = function(items, request){
       if (items.length < pageSize){
          //We have found all the items and are at the end of our set.  
          outOfItems = true;
       }else{
          outOfItems = false;
       }
       //Display the items in a table through the use of store.getValue() on the items and attributes desired.
       ...
    }