View Full Version : Paging Toolbar

5 Jun 2012, 6:10 AM
I'm looking for change the paging toolbar removing the textbox "Page [X] of Y" and make a numbered paging like 1,2,3....n-2,n-1,n.

Some help on how to do that or where to read some examples of this type of customization?

- Sadd

5 Jun 2012, 8:48 AM
If you take a look at the source for Ext.toolbar.Paging (http://docs.sencha.com/ext-js/4-0/source/Paging.html#Ext-toolbar-Paging), you'll see that function getPagingItems() is what returns the buttons/fields/components that appear in the toolbar. You can override this method and return whatever components you like.

Note that there are specific itemId values used on the components, where these are referenced throughout the class, so you'll have to do a few other tweaks here and there...