We will explore the JavaScript
code, by which we can easily Enable or Disable all the Tabs inside a Telerik RadTabStrip
.
Read the comments inside the code blocks to know how the code works.
Enable All Tabs
function EnableAllTabs(){
var tabStrip = $find('<%= yourTabStripID.ClientID >');
var tabs = tabStrip.get_tabs();
for(var i = 0; i < tabStrip.get_allTabs().length; i++){
tabs.getTab(i).enable();
}
}
Disable All Tabs
function DisableAllTabs(){
var tabStrip = $find('<%= yourTabStripID.ClientID >');
var tabs = tabStrip.get_tabs();
for(var i = 0; i < tabStrip.get_allTabs().length; i++){
tabs.getTab(i).disable();
}
}