-
22 Mar 2011 12:07 PM #151Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
Some of you have noticed that I just pushed some changes to GitHub. Changes:
- Added getView method to return the underlying DataView (notice how ExtJS4 is using DataView now too?)
- Added bindStore method to bind a Store to the underlying DataView
- Added getStore method to get the Store of the underlying DataView
- Added getRow method to get the row node (not Element) based on passed index OR Record
- Adds/removes "x-grid-row-dirty" CSS to each row if the corresponding Record is marked dirty or not
- Adds/removes "x-grid-cell-dirty" CSS to each cell if the corresponding Record is marked dirty or not
I need to write up another forum post for a plugin I have made real quick for this grid panel. Editable?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.
-
22 Mar 2011 12:22 PM #152Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
Just an FYI if you want to make Ext.ux.TouchGridPanel editable. I plan to improve this plugin, hence the 0.1 version.
http://www.sencha.com/forum/showthre...ridEditor-v0.1Mitchell 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.
-
1 Apr 2011 8:45 AM #153
Hi,
thanks for dramatically improving on the extension. works really fantastic now. I wanted to ask if its possible to somehow highlight a complete row in the grid checking for a value - is this possible via the renderer or style?
cheers,
Alex
-
1 Apr 2011 6:43 PM #154
I actually have the same feature request!
I would like to assign a specific CSS class to certain rows that have a value X in store, but I'm not showing this value (column) in the TouchGridPanel.
Hopefully that made any sense. Is there any way this could be done easily?
-
2 Apr 2011 3:52 AM #155
Hi,
how can I use the itemtap feature? I not that familiar with bubbleEvents... would somebody maybe have an example?
cheers,
Alex
-
2 Apr 2011 8:18 AM #156Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
Currently, DataView does not support changing CSS or styles based on value. That being said, I will look into it!
About bubbleEvents.. what that does is when one of the events in the bubbleEvents array is fired, the DataView will fire that event on the Panel aswell. So to take advantage of the itemtap event from the DataView, you can do this:
Code:new Ext.ux.TouchGridPanel({ .... listeners : { itemtap: function(dataview, index, el, e) {} } });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.
-
2 Apr 2011 8:21 AM #157Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
You can change the style a cell. There is a parent CSS selector that you may be able to use
http://www.google.com/#q=css%20parentMitchell 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.
-
4 Apr 2011 8:56 AM #158
Hi,
thanks, events work now without problems too. Do you know if there is a possibility to make the grid "aware" of a bottom tab. Currently when you have the grid in a bottom tab the is not seen as a border but the grid is behind it which makes it sometimes counter intuitive to scroll more up.
Plugin is really amazing and works very very good in version 2.0. Thank you so much again for your effort!
cheers,
Alex
-
13 Apr 2011 1:13 PM #159
Turn off Sorting
Turn off Sorting
Is there any way to disabling sorting?
I was thinking there must be a way to override the event handler for it, but I haven't been able to figure it out.
Any suggestions?
-
13 Apr 2011 1:15 PM #160Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,640
- Vote Rating
- 435
You can override the handleHeaderClick method to just do nothing. All that function does is sort the Store and toggle the arrow
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.


Reply With Quote