telerik:RadTabView - set specific tab to be active in run time and set it border with red ?

1 Answer 152 Views
TabView
Daniel
Top achievements
Rank 1
Silver
Bronze
Daniel asked on 10 Mar 2022, 12:06 PM

HI,

How to set specific tan in runtime to be active due to error and set it border and text to be red;

Thanks,

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 11 Mar 2022, 11:10 AM

Hi Daniel,

TabView provides selection feature - you can either set TabView's SelectedItem property as shown in the example here: TabView Selection.

As to the styling of the selected TabViewItem, please refer to the following thread where I provided an example how to apply HeaderItemStyle and change TextColor and BorderColor for Selected visual state:

telerik:RadTabView - change the background of the selected TabViewItem

Regards,
Yana
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.

Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 11 Mar 2022, 11:46 AM

Can you please provide snipped code, how to change the border of tab view in run time?
Daniel
Top achievements
Rank 1
Silver
Bronze
commented on 13 Mar 2022, 06:59 AM | edited

..
Yana
Telerik team
commented on 14 Mar 2022, 09:33 AM

For now you cannot change the border of a tab item at runtime - the appearance of the tabs is controlled through the HeaderItemStyle - you can differentiate from Selected and normal state of the tabs.  Could you please elaborate a little bit more on the exact use case/scenario you have?
Tags
TabView
Asked by
Daniel
Top achievements
Rank 1
Silver
Bronze
Answers by
Yana
Telerik team
Share this question
or