21 Jun 2010 11:58 AM #1
Editor Grid Plugin
Editor Grid Plugin
I am trying to develop a Grid plugin which will allow editing only first row . I tried a different approach by adding the widgets to the header but it does not work as i intended. (See the screen shot below) .
Could anyone provide me a way to implement this ?
22 Jun 2010 6:54 AM #2
- Join Date
- Mar 2007
- St. Louis, MO
- Vote Rating
Why not just add the event listener "beforeedit" and see if it's the first row?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
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 email@example.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 Jun 2010 7:18 AM #3
I think i did not make it clear , the first row will act as editor for rest of the rows . So if you click on the second/third row the data from that will load in the first one and the user is allowed to edit it (If you select multiple rows common data is loaded in to the first row).
I tried your method as well but i had to proxy many events (like sorting , the first one should be first always) so thought i will develop a plugin to attach the editor just below the header to handle and avoid handling the grid events . Not sure if its a good way but i need some suggestions how to do it .Vijay
By aomadevelopers in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 30 Nov 2009, 11:49 PM
By dan007 in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 29 Nov 2009, 2:25 PM
By dan007 in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 28 Nov 2009, 11:37 AM