This is a migrated thread and some comments may be shown as answers.

Styling For Dynamically Selected Tab

1 Answer 165 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
jwize
Top achievements
Rank 1
jwize asked on 06 Jun 2014, 10:33 AM
I can select a tab no problem by using tabStrip.activateTab(tabElement);

However, the color is not the regular selected tab color. I actually have to click it to make it get styled properly. 
Is there any easy way to trigger this behavior? 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Jun 2014, 03:02 PM
Hello Jaime,

Please do the following:

1. Go to the following demo:

http://demos.telerik.com/kendo-ui/tabstrip/api

2. Click on the "Swimming" tab. The tab is selected (activated) and the corresponding styling is applied.

3. Execute the following in the browser's Javascript console:

$("#tabstrip").kendoTabStrip().data("kendoTabStrip").activateTab($("#tabstrip .k-item").eq(1));

The resulting styling in points 2 and 3 should be identical. Is this the case on your side? If not, please review your code, compare it with the demo and send a runnable example, if you need further advice.

Regards,
Dimo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
TabStrip
Asked by
jwize
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or