19 Jan 2011 5:23 AM #1
I have a problem with setCard() concerning the output of the UI.
I have a TabPanel which contains a toolbar (top) and a TabBar (bottom).
From a list that is set as the card of one of the TabBar-items I want to switch to another item.
Via setCard I assign the new item to the Tab, but it does't update the UI. I think my failure is located somewhere in rendering of the UI. Concerning to the console the object itself is updated and the Tab includes the new Item. But the changes are not made visible. I tried to call the doLayout() and doComponentLayout() - functions from my TabPanel object but nothing changes.
note: I'm almost new to Sencha Touch and on my way trying to understand the principles, but capable of JS ;-)
Thank you for any help!
21 Jan 2011 12:26 AM #2
maybe the code helps you to help me
var myarray = tabpanel.getDockedItems(); myarray.items.items.setCard(playlistItems); myarray.cardLayout.setActiveItem(1); myarray.doLayout(); myarray.doComponentLayout();
By tomalex0 in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 19 Sep 2010, 10:10 PM
By hitman01 in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 14 Sep 2010, 4:01 PM
By tido in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 12 Aug 2010, 5:25 PM
By bbones in forum Community DiscussionReplies: 6Last Post: 29 May 2009, 3:08 AM
By emredagli in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 19 Jan 2009, 11:46 AM