-
5 Feb 2011 5:57 AM #1Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
Ext.ux.touch.PagingToolbar v1
Ext.ux.touch.PagingToolbar v1
With people asking for paging support in my Ext.ux.TouchGridPanel, I have created a paging Toolbar named Ext.ux.touch.PagingToolbar.
Sencha Touch makes paging super easy with function like nextPage, previousPage, and loadPage.
Give it a whirl - http://www.simoens.org/Sencha-Projects/demos/
Git - https://github.com/mitchellsimoens/E....PagingToolbar
Tested on Sencha Touch 1.0.2Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Feb 2011 10:10 AM #2
Works well. Easy to understand and use. I liked the kitchen sink style demo too. Great way to group custom stuff that sencha users are already familiar with. I might do that myself.
Simon Flack
CEO and UX Designer
WhiteFox AS, Norway
Web: www.whitefox.no
Facebook: www.facebook.com/WhiteFoxAS
Twitter: @WhiteFoxAS
-
5 Feb 2011 10:18 AM #3Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
Thank you. I figure why reinvent the wheel when the kitchen sink works perfectly!
One thing that I haven't mentioned about Ext.ux.touch.PagingToolbar is that it will first look to see if you specified a store to the plugin itself. If it doesn't find one then it will inherit it's parent's store. Problem is when you use it with a DataView or List, they cannot have docked items. So you would then have to specify the store on the DataView/List and specify Ext.ux.touch.PagingToolbar on the Panel specifying the store to Ext.ux.touch.PagingToolbar. Does this make sense?
Oh, about your PM to me... I'm not at all very understanding on licenses. I had someone who wanted to use my TouchGridPanel for a large commercial project but needed tint be GPLv3 and at the time I didn't specify what license I had so I picked it for that reason. Wikipedia has a nice write up though if you do take the time to read it.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
5 Feb 2011 10:23 AM #4
Thanks. I have read it. Hurt my brain... Hehe.
Simon Flack
CEO and UX Designer
WhiteFox AS, Norway
Web: www.whitefox.no
Facebook: www.facebook.com/WhiteFoxAS
Twitter: @WhiteFoxAS
-
28 Feb 2011 8:42 PM #5
Nice work!
I think I might have found a small bug? In your demo, you are using totalProperty:
totalProperty: "total"
However, totalProperty is not used anywhere in Ext.ux.touch.PagingToolbar.js.
Thanks again! 8)
-
1 Mar 2011 5:16 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 435
I actually do. The function getTotalRecs drills down to get the total property that is created using the totalProperty.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
19 Apr 2011 6:16 PM #7
Hi,
I'm encountering a very weird bug with the PagingToolbar. The bug appears to only appear on the iPad, desktop (Google Chrome) and Android (Samsung Galaxy Tab) works just fine.
I am having a layout with several tabs. One of the tabs is using TouchGridPanel with PagingToolbar. Whenever I switch to this tab or switch away from this tab, the screen freezes for a while. Clicking on any of the buttons will not help. I'm not exactly sure what might be causing the bug, but if I remove the PagingToolbar plugin from the TouchGridPanel, everything seems to work fine.
Here's the code I'm using:
Is there something that I'm missing?Code:var subsection_Transactions_All = new Ext.ux.TouchGridPanel({ id: 'subsection_Transactions_All', title: 'All', cls: 'table_Transactions', // Layout options layout: 'fit', flex: 1, // Store options store: store_Transactions, plugins: [new Ext.ux.touch.PagingToolbar()], multiSelect : false, // Columns colModel: transactionColumns })
-
10 May 2011 7:22 PM #8
Hi,
Would it be possible to build in support for a "First page" and "Last page" buttons?
Cheers,
Nico
-
12 Jul 2011 11:55 PM #9
my touchgridpanel doesn't seem to integrate with myPagingToolbar...
i can't navigate to the other pages... 'Next' button doesn't work and i can't generate my page list either..
what could be the problem??
-
1 Aug 2011 12:47 AM #10
Hi,
You have mentioned:" Problem is when you use it with a DataView or List, they cannot have docked items. So you would then have to specify the store on the DataView/List and specify Ext.ux.touch.PagingToolbar on the Panel specifying the store to Ext.ux.touch.PagingToolbar. "
how to do this?
how to change the following codes to work?
var panel1 = {
xtype: 'panel',
items: [{
width: 300,
height: 500,
xtype: 'list',
store: PagingToolbarStore,
plugins: [new Ext.ux.touch.PagingToolbar()],
itemTpl: 'Company: {company}, Price:{price}, Last Updated: {updated}.'
}],
plugins: [new Ext.ux.touch.PagingToolbar()], ///??? put the plugin here ???///
};
Thanks.
Similar Threads
-
[DUPE-653] Touch 1.0.1 scrolls to end of page on simple touch.
By stevek in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 23 Dec 2010, 3:45 PM -
[FIXED-598] Getting Started has ext-touch-debug.js instead of sencha-touch-debug.js
By scottpenrose in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 26 Nov 2010, 9:58 AM -
Sencha Touch on iPhone v1 / iPod touch v1 ?
By palnap in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 28 Oct 2010, 5:30 PM -
Ext.PagingToolbar Supported in Sencha Touch ?
By el-tio in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 27 Jul 2010, 4:30 AM -
How to declare grid with pagingtoolbar, without calling PagingToolbar constructor
By grzegorz.borkowski in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 9 Feb 2009, 5:57 AM


Reply With Quote