in ExtJS 5.1.0, I have a grid with checkcolumn and widgetcolumn. How to enable/disable the components of the row based on the action of checkcolumn i.e. if user checks the checkbox then the entire row components (excluding checkbox) should be disabled/readonly. If user unchecks it, the components should be enabled.
1 Answers
0
votes
You can use onWidgetAttach property.
A function that will be called when a widget is attached to a record. This may be useful for doing any post-processing.
You can add id property to each widget based on record data and select it later with component query (i.e. controller conttrol setup) in a grid checkchange event handler.
checkchangeevent. On of the callbacks arguments is therowIndexwhich may be used to select the widget in the same row. That's one way, not necessarily the best approach. - bentrm