View Full Version : GridPanel deselect

13 Feb 2010, 10:18 AM

When I click on a row in my GridPanel I pop up a Window containing a FormPanel with data. This is OK so far. When I close the Window the GridPanel row remains selected.

I would like the row to be deselected when I close the popup Window (actually I hide the window on close).

I have attached the following to the Window but with no success : screen just hangs : Firebug seems lost somewhere in ext-all.js :

{beforehide: function(){
return true;

Any ideas on this please ?

13 Feb 2010, 11:23 AM
Use ext-all-debug.js and put a breakpoint at the "...clearSelections();" line and step into the code.

14 Feb 2010, 8:34 AM
I get a message that 'Ext.getCmp("grid_name")' is undefined : but it really is, so processing just can't find it. Suspect some kind of scope error I'll have to have a look at.

14 Feb 2010, 10:17 AM
Not scope...it's because getCmp uses the ID and not the name. Oops.:">