1 Dec 2011 3:08 PM #1
Answered: How to get a specific editor component from a grid?
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.
grid.editingPlugin.editor is the form
2 Dec 2011 8:18 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
grid.editingPlugin.editor is the formMitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
2 Dec 2011 1:28 PM #3
Turns out it's actually grid.editingPlugin.editors (plural), but that did the trick. Thanks.