View Full Version : Which method to call to retrieve next dataset in Grid

3 Sep 2009, 7:26 AM
Hello there,

I'm using the Grid to display some data. I'm displaying 20 rows at a time and with the paging tool bar I can access the rest. What's the method called when I click ">" (Next) button or the "<" (Previous) buttons?

Thanks in advance

3 Sep 2009, 7:30 AM
http://extjs.com/deploy/dev/docs/?class=Ext.PagingToolbar ?

4 Sep 2009, 7:44 AM
Thank you for the response Animal, but after going through the gird object, I wasn't still able to find how to call the "moveNext()" or "movePrevious()" methods of the bbar.

I am not building the grid from scratch, Coldfusion is. I'm just grabbing the grid object via Javascript as follow:

<script type="text/javascript">
var grid = ColdFusion.Grid.getGridObject("myGird"); //this return the grid object
// var gridFoot = grid.getView().getFooterPanel(true);
// var ds = grid.getDataSource();

Once I've the grid object how do I go about accessing the "moveNext()" or "movePrevious()" methods?


4 Sep 2009, 11:43 AM

(or top)