-
4 Feb 2011 7:54 AM #111
-
5 Feb 2011 5:57 AM #112Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
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 8:26 AM #113Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
I have added sorting and the ability to show/hide columns.
To sort, click on the header.
To show/hide columns:
Code:grid.toggleColumn(1); //by index grid.toggleColumn("price"); //by mappingMitchell 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 8:27 AM #114Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Check out my new Paging Toolbar!
Github - https://github.com/mitchellsimoens/E....PagingToolbar
Demo - http://www.simoens.org/Sencha-Projects/demos/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:04 AM #115
Awesome, Mitchell! You rock!
Now if we can just have the plugin for a totals bar, you will have made my life complete.
If you are going to do that, it would be good to have the option of docking it or just having it be the last row of the grid.
-
5 Feb 2011 4:39 PM #116Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Ext.ux.touch.GridSummary - http://www.sencha.com/forum/showthre...GridSummary-v1
You have an option to add a dock or a row and you can summarize to have the total or an average. You can also specify the decimal position.
This will work in conjunction with Ext.ux.touch.PagingToolbar as it refreshes the summaries on store data change (of course).
I'm not 100% happy with it but it works.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 8:15 PM #117
-
6 Feb 2011 6:35 PM #118
Hi,
I have been playing around with your plugin but I have been having some scrolling problems when embedding the TouchGridPanel into another panel. I am able to scroll the grid but directly after I release my finger/mouse, the grid goes back into its original position.
Below is some code that I have been playing around with:
Code:var section_Transactions = new Ext.Panel({ layout: { type: 'vbox', align: 'stretch' }, dockedItems : [{ xtype : "toolbar", dock : "top", title : "Title", items: [{ ui : 'back', text: 'Back', handler: function() { navigate(section_PropertyDetails); } }] }], items: [{ layout: { type: 'auto', align: 'center' }, height: 260, padding: '5 5 5 5', html: 'Content' }, new Ext.ux.TouchGridPanel({ store : store_Transactions, multiSelect : false, layout : 'auto', dockedItems : [{ xtype : "toolbar", dock : "top", title : "Ext.ux.TouchGridPanel by Mitchell Simoens" }], colModel : [{ header : "Company", mapping : "address", flex : 2 },{ header : "Price", mapping : "price", style : "text-align: center;" /*},{ header : "Change", mapping : "change", cls : "centered-cell" },{ header : "% Change", mapping : "pct", cls : "centered-cell"*/ },{ header : "Last Updated", mapping : "size", hidden : true, style : "text-align: right;" }], listeners: { beforeselect: function(dataview, nodes, selections) { console.log(selections); }, containertap: function(dataview, e) { console.log(dataview); }, itemdoubletap: function(dataview, index, el, e) { console.log(index); }, itemswipe: function(dataview, index, el, e) { console.log(index); }, itemtap: function(dataview, index, el, e) { console.log(index); }, selectionchange: function(selectionModel, selections) { console.log(selections); } } }) ] });
-
6 Feb 2011 6:40 PM #119Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,581
- Vote Rating
- 433
Remove the layout you put on the grid. Not sure why you would specify a default anyway but that is overriding the fit layout that i put in the grid. For a dataview or list to scroll properly, the parent panel cannot use the auto layouts.
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.
-
6 Feb 2011 9:32 PM #120


Reply With Quote