Sencha touch 2 setActiveItem main view error -
i implementing sliding navigation. when 1 of list items in slide navigation clicked, i'm using following controller code load relevant view:
switch(index){ case 0: this.getmain().setactiveitem({xtype:'main'}); break; case 1: this.getmain().setactiveitem({xtype:'messagesview'}); break; case 2: this.getmain().setactiveitem({xtype:'articleslistview'}); break; case 3: this.getmain().setactiveitem({xtype:'categoriesview'}); break; default: break; }
every 1 of setactiveitem function calls work except first on. when try set main view active view, following error:
uncaught error: [error][ext.container#doadd] adding card tab container without specifying tab configuration
can me resolve problem?
this.getmain().setactiveitem(0);
the code above solved problem
Comments
Post a Comment