PDA

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



wekkaw
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

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

wekkaw
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();
}
</script>

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

Thanks!

Animal
4 Sep 2009, 11:43 AM
http://www.extjs.com/deploy/dev/docs/?class=Ext.Panel&member=getBottomToolbar

(or top)