PDA

View Full Version : Reference EditorGridPanel from GridEditor



zachext
6 Mar 2011, 3:09 AM
Is there a way to reference the containing EditorGridPanel from a GridEditor?

Within the GridEditor instance I see things like row, column, record, and parentEl. None of those seem to get me there.

Thanks for any suggestions.

zachext
6 Mar 2011, 5:15 PM
Here's one way to do it:

//get reference to grid editor from field event.
Ext.getCmp(field.gridEditor.container.parent().parent().parent().parent().parent().id)

Seems less than ideal. Must be a better way, eh?