-
19 Jan 2011 5:23 AM #1
setCard rerendering?
setCard rerendering?
Hi!
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!
Jonas
-
21 Jan 2011 12:26 AM #2
maybe the code helps you to help me

Code:var myarray = tabpanel.getDockedItems(); myarray[1].items.items[1].setCard(playlistItems); myarray[1].cardLayout.setActiveItem(1); myarray[1].doLayout(); myarray[1].doComponentLayout();
Similar Threads
-
setCard callback
By tomalex0 in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 19 Sep 2010, 10:10 PM -
Carousel SetCard
By hitman01 in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 14 Sep 2010, 4:01 PM -
Error when using setCard()
By tido in forum Sencha Touch 1.x: DiscussionReplies: 1Last Post: 12 Aug 2010, 5:25 PM -
StartMenu rerendering
By bbones in forum Community DiscussionReplies: 6Last Post: 29 May 2009, 3:08 AM -
Updating (or rerendering) grid column
By emredagli in forum Ext 2.x: Help & DiscussionReplies: 5Last Post: 19 Jan 2009, 11:46 AM


Reply With Quote