PDA

View Full Version : How to get rowID in the EditorGridPanel based on the Comboox selection in the rowcell



vvorobeychik
23 May 2012, 10:13 AM
I need to enable/disable editor only of the specific row based on the combo selection of this row, ComboBox itself defined as an editor in the ColumnModel.
All events of the RowModel work only if I click on the row besides the ComboBox, I need to get the row index (or anything else, e.g. record, from what I can get this index). The Select event of the ComboBox does not provide any information about that.
Is it possible? Is so, any help is greatly appreciated. If possible, does version 3.3 support that or I have to use 4.1?

scottmartin
24 May 2012, 1:26 PM
Have a look at the beforeedit event (create a listener) and it show you all the info needed:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Table-event-beforeedit

Simply return false if you do not like the value in your combo.

Regards,
Scott.

vvorobeychik
30 May 2012, 4:11 AM
Thank you, it works!