View Full Version : how to add a paging toolbar

26 Apr 2007, 12:40 AM
i create a grid from a table,but how can i add a paging toolbar below?

Ext.grid.TableGrid = function(table, config) {
config = config || {};
var cf = config.fields || [], ch = config.columns || [];
table = Ext.get(table);
var ct = table.insertSibling();
var fields = [], cols = [];
var headers = table.query(

26 Apr 2007, 1:56 AM
Your data is all present in the grid. No paging toolbar is necessary.

26 Apr 2007, 2:06 AM
there maybe more than 1000 rows,how can i display them in pages

26 Apr 2007, 2:39 AM
This example is pretty easy to read and implement: http://extjs.com/deploy/ext/examples/grid/paging.html (http://extjs.com/forum/../deploy/ext/examples/grid/paging.html)
I never used that kind of source for the dataStore before, but I guess the data is returned in the same format, so just try and link the datastore to the paging toolbar and see what happens.