-
17 Nov 2010 3:36 AM #1
Error while setting active tab
Error while setting active tab
Hi all
I have this code :
So when the tab in SM.mainPanel exists than it opens new tab with specified title, if this tab exists than it's activating existing tab. But in else statement I got this error in firebug:Code:SM.CustomerRecordsTabPanel = Ext.extend(Ext.TabPanel, { constructor: function(config){ var tabExists = SM.mainPanel.find('title','Rekordy '+config.record.data.name) if(tabExists.length == 0) { SM.CustomerRecordsTabPanel.superclass.constructor.call(this,{ title : 'Rekordy '+config.record.data.name, closable: true }); } else { SM.mainPanel.setActiveTab(SM.mainPanel.find('title','Rekordy '+config.record.data.name)); } } });
Any ideas how to get rid of this error ?me.events is undefined
[IMG]chrome://firebug/content/blank.gif[/IMG] ce = me.events[ename],
Similar Threads
-
Card Layout not responding to doLayout after setting it active.
By ckotyan in forum Ext 3.x: Help & DiscussionReplies: 7Last Post: 19 Aug 2010, 7:13 AM -
Problem in setting active tab in dynamic tab panel
By suguna in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 26 Apr 2010, 5:23 AM -
[SOLVED] Tab Panel - Auto change the active tab
By frankthetank in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 6 Jan 2009, 9:52 AM -
Help Setting Active Tab On Invalid Validation
By finch in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 9 Dec 2008, 3:53 AM -
Need Help in TabPanel -- Active tab setting(Extjs2.0)
By cprabha in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 14 Jul 2008, 1:01 AM


Reply With Quote