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

Disable TabStrip

1 Answer 1015 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Elliot
Top achievements
Rank 1
Elliot asked on 21 Feb 2013, 06:47 PM
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.

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 25 Feb 2013, 09:25 AM
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
    tabstrip.disable(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!
Tags
TabStrip
Asked by
Elliot
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Share this question
or