Styling For Dynamically Selected Tab

2 posts, 0 answers
  1. Jaime
    Jaime avatar
    60 posts
    Member since:
    Mar 2013

    Posted 06 Jun 2014 Link to this post

    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? 
  2. Dimo
    Admin
    Dimo avatar
    8330 posts

    Posted 09 Jun 2014 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top