-
4 Apr 2011 8:37 AM #1
Cell Editor question (Grid)
Cell Editor question (Grid)
Is it possible to have a combo box cell editor where the options in the combo box change depending on the row selected?
-
6 Apr 2011 4:46 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
I imagine that you can load the combo store based on the row selected. Setup a beforeedit event listener to do so. The beforeedit event fires handlers, passing an event object that contains the following:
Code:grid - This grid record - The record being edited field - The field name being edited value - The value for the field being edited. row - The grid row index column - The grid column index cancel - Set this to true to cancel the edit or return false from your handler.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
7 Apr 2011 5:48 AM #3
I don't think beforeedit is firing but I was able to do it by overloading startEdit.
Similar Threads
-
Grid editor intercept cell event and hide another cell
By ddxt in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 3 Nov 2009, 3:59 AM -
set a value on an editor grid's cell
By len in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 13 Mar 2009, 1:41 AM -
Different Editor for each cell within a Grid
By Boon in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 18 Aug 2008, 10:10 AM -
Quicky: editor grid cell editor focus
By almerelc in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Apr 2008, 9:09 PM -
why this space in editor grid to editor cell???
By genius551v in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 24 Feb 2008, 1:45 PM


Reply With Quote