PDA

View Full Version : toggleGroup is not working



columbus30
29 May 2009, 11:59 PM
I have added a toggleGroup() within the listener of gridPanel on activate event.

the code is as following:


listeners: {
activate : function(){
alert('inside activate');
var grid11 = Ext.getCmp('GridId');
var g = (grid11.getView().getGroupId('P'));
grid11.getView().toggleGroup(g,true);
}
}
when i first click on the tab for activating this grid panel,it shows
the 'inside activate' alert but it does not toggle the group specified.

But after this if click some other tab and then come back to this tab
for activating this grid panel then toggleGroup() is working fine.

I have tried it with other events like render also,but it is not working.

Can anyone please tell what is the reason for this and how can i fix it.

tryanDLS
30 May 2009, 6:35 AM
Please don't post the same question in multiple places - other thread deleted.