PDA

View Full Version : How to get a specific editor component from a grid?



adisharoon
1 Dec 2011, 3:08 PM
I have a grid that rows will be added to. One of the columns is editable with a ComboBox. I want to set the store of that ComboBox when the row is added to the grid. I can't seem to figure out how to get a reference to the ComboBox. What path do I have to traverse?

Currently I am trying to make this happen in a listener for the grid's tableview's itemadd event. The problem is that that event only passes the row's node, not a component.

Another idea is the ComboBox's configuration in the columns of the grid's configuration. But I can't figure out how to get a reference to the record being added from there.

Alec

mitchellsimoens
2 Dec 2011, 8:18 AM
grid.editingPlugin.editor is the form

adisharoon
2 Dec 2011, 1:28 PM
Turns out it's actually grid.editingPlugin.editors (plural), but that did the trick. Thanks.

Alec