Disable TabStrip

2 posts, 0 answers
  1. Elliot
    Elliot avatar
    59 posts
    Member since:
    May 2012

    Posted 21 Feb 2013 Link to this post

    How would I disable the tabstrip based on whether a checkbox is checked or not?  Is there a way to disable the entire strip or do you need to loop through the tabs and disable each?

    A code snippet would be greatly appreciated.
  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 25 Feb 2013 Link to this post

    Hi Elliot,

    In order to achieve this I will suggest the following approach: 
    • Get a reference to the TabStrip Kendo UI object;
    • Get the whole items collection;
    • Use the disable() method to disable the tabs.
      //get a reference to the TabStrip
      var tabstrip = $("#tabstrip").data("kendoTabStrip");
      //get the items
      var items = tabstrip.items();
      //disable the items

    Kind regards,

    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top