My parent tabpanel has two child tab panels. If I am in child tab 1 and do some operation, I want to redirect to child tab 2 after operation is complete. I found "setActiveTab" function but I am not sure about the syntax for using it. I did the following but it gave error saying "setActiveTab is not a function". Can someone tell me the correct way of doing it?
Code:
var a= Ext.getCmp('ParentTabPanel');
var b= Ext.getCmp('ChildTabPanel1');
var c= Ext.getCmp('ChildTabPanel2');
b.setActiveTab(c);