PDA

View Full Version : How to talk to editorgrid in active tab



mfearby
17 Sep 2010, 4:55 AM
I've tried searching the ends of google for a solution but came up with nothing. One thing I did find was to try this:

var grid = tabs.getActiveTab().findByType("editorgrid");

but it just returns nothing, and I've been banging my head against the monitor for ages now to try to find the editor grid within the active tab and gotten nowhere. So, how do I find, and get access to talk to, an editorgrid within the active tab?

Thanks. I bought "Learning ExtJS" but it's a bit thin on the ground when it comes to things that aren't just adding a listener as you create the grid.

mfearby
20 Sep 2010, 1:33 AM
Turns out my call to getActiveTab() was already returning a handle to the grid because the tab IS an EditorGridPanel. All that time I spent trying to find out why I couldn't find the grid beneath the tab and I had it all along :-) And it took a tweet from a priest in Tennessee to point that out on Twitter. Hope this helps somebody one day.