PDA

View Full Version : Customize PagingToolBar Layout



Crhys
13 Jan 2013, 7:51 AM
Hi everybody!

I'm not sure if my post is in the right part of the forum, so sorry about that.

I have just a question about de Layout of the PagingToolBar on GridPanel.

Actually my ToolBar looks like this :

41238

And what i want is to custom the layout of this ToolBar to obtain something like this:

41239

I don't know if there is a simple way to do that. So if you have suggestions for me, it could be very nice!

Thanks a lot! :)

If you need more informations to help me, tell me what you want!

Crhys
14 Jan 2013, 4:20 AM
No easy way to do that ? :-?

friend
14 Jan 2013, 5:14 AM
You'll need to extend/override Ext.toolbar.Paging (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.toolbar.Paging). In particular, take a look at the getPagingItems() method in the source (http://docs.sencha.com/ext-js/4-1/source/Paging.html#Ext-toolbar-Paging). This is where the child components in the toolbar are created.

Crhys
14 Jan 2013, 7:40 AM
Thanks for your answer! :)

I'll try that!