RadTabItem content is not showing

1 Answer 53 Views
TabControl
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Paul asked on 07 Sep 2023, 11:45 AM

 radTabControl.SelectedItem = radTabItem;     // set tab as the active one
 radTabItem.Content = userControl;  

The code above runs but the contents of the previous RadTabItem remain on srceen.

The tab and visual indicator showing what tab the user is on show but all the contents are those that belong to the previous tab.
Is there a refresh command that I'm missing?

 

Paul
Top achievements
Rank 2
Iron
Iron
Iron
commented on 07 Sep 2023, 01:58 PM

This looks like a bug, because it shows correctly if I click a different tab and then click the one I want.
i.e. setting SelectedItem does not have the same result as clicking the tab.

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 08 Sep 2023, 02:32 PM

Hello Paul,

I couldn't reproduce your scenario. It seems that everything is working properly on my side. I prepared a sample solution where your logic is implemented. 

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TabControl
Asked by
Paul
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dinko
Telerik team
Share this question
or