View Full Version : Two depended combo in EditorGrid

23 Feb 2011, 8:05 PM

I have EditorGrid with two columns. Column A and Column B. Both are using Combo.

my initial config for Column b's Combo is disabled. I only want to enabled Column B' combo base on Column A' select value.

I added select change event of Column A and try to enabled Column B' combo. It is work but all the Column B's combo in all ROW are enabled. I only want to enabled current row.

Please let me know which event I support to write. Thanks.


23 Feb 2011, 9:53 PM
listen to 'beforeedit' of the editor grid and set the disabled state of the combo then according to the record.

23 Feb 2011, 9:57 PM
Thanks darthwes.

I can managed to overcome this issue using isCellEditable: function(col, row) in ColumnModel.

Thanks again.