-
20 Feb 2011 8:15 PM #141Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Will look into this. Thanks for the report.
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.
-
7 Mar 2011 11:38 PM #142
Is it possible to use this extension without having the dataview scroll (and not having to fix the height)? Essentially I have a fullscreen panel with a vbox layout. It includes a few grids and I need to be able to scroll up and down the entire panel but the current scrolling of the grids breaks this. I did turn the scrolling of of grids but can't find a way to make the dataview set it's own height. Is this possible?
Apologies if this has been mentioned already.Last edited by ksystems; 7 Mar 2011 at 11:41 PM. Reason: Grammar fail!
-
8 Mar 2011 4:12 AM #143Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Just commited a change to the GitHub repo. TO disable scroll:
vAbout it's own height... all this extension really is is a Panel and a DataView so it theory it should be able to adhere to any layout and if you specify it's height.Code:ar grid = { xtype : "touchgridpanel", .... scroll : false //can be false, vertical, horizontal, both };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.
-
18 Mar 2011 10:40 AM #144
Hi Mitchell,
I have an app where there's a grid view loaded in a panel, and there's a selection box where the user can choose which view they want. A new selection brings up an entirely different grid - different column model, different store, etc.
What do you think would be the best way to handle this, performance wise? I don't want to have to pre-load all of the grids ahead of time if the user never wants to see most of them. Is it possible to dynamically change the colModel and store on the same grid? Or should I remove the grid component and add a new one to the panel each time?
-
18 Mar 2011 10:45 AM #145Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
I think the easiest way to do it is just remove old and add new grid. That being said you can show/hide columns. The underlying DataView's bindStore method would have to be executed. May need to add a function to the grid panel to do this but you can do it this way:
To show/hide a column, you do this:Code:var dataview = grid.dataview; dataview.bindStore(store);
Code:grid.toggleColumn(column index);
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.
-
18 Mar 2011 11:02 AM #146
Thank you Mitchell! I'll give both ways a shot and see if it makes any difference to performance.
-
18 Mar 2011 11:03 AM #147Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
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.
-
18 Mar 2011 12:01 PM #148
Also, how would I trigger an event based on tapping an individual cell rather than a whole row?
-
18 Mar 2011 12:04 PM #149Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
Right now it bubbles beforeselect, containertap, itemdoubletap, itemswipe, itemtap, selectionchange events from the DataView.
If you drill down to a cell, you will see what CSS rules are applied. Based on this you can use the delegate option to specify certain cells. Or, you can check to see if the el in the itemtap event has a certain CSS rule.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.
-
20 Mar 2011 7:47 AM #150
Hey guys,
I have been trying to add this grid to a canvas in a Carousel but m not able to..
Pls share if anyone has got it there before..
Any help would be appreciated..
Lilford


Reply With Quote