Kendo MVC TabStrip Disable Animation; Animation getting reenabled on javascript select of tab.

2 posts, 0 answers
  1. Mahendra
    Mahendra avatar
    1 posts
    Member since:
    Jun 2015

    Posted 03 Jun 2015 Link to this post

    Hi Tlerik Team,

     

    I'm trying to disable the animation for the Kendo MVC TabStrip and I did like 

     @{ Html.Kendo().TabStrip()     
            .Name("tabxyz")
             .Events(events => events.Select("onSelect"))
              .Animation(animation =>
              {
                  animation.Enable(false);
              })

    And its working as expected; But when I change the tab using the java script code, the animation is enabled again!!!!

    Here is the code that I used.

      var tabstrip = $("#tabxyz").kendoTabStrip().data("kendoTabStrip");  
      var myTab = tabstrip.tabGroup.children("li").eq(selectedTab);
       tabstrip.select(myTab);

     

    Please let me know what i'm doing wrong!! 

    Thanks in advance.

    Mahendra.

     

     

     

  2. Rosen
    Admin
    Rosen avatar
    3234 posts

    Posted 05 Jun 2015 Link to this post

    Hello Mahendra,

    By looking at the code you have pasted, I suspect that the issue is caused by the fact that a new TabStrip widget is created in the "somemethod". In order to get the already existing instance of the TabStrip from a given element, you should call the .data("kendoTabStrip") directly on the element:

    $("#tabxyz").data("kendoTabStrip");

     

    Regards,
    Rosen
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top