I binding datasource to generate the tabs dynamically in tabStrip control. For each tab in tabstrip i have a check box on the form. My Requirement is:
initially all the tabs will be disabled and on check change event of checkboxes i need to enable or disable the respective tabs based on check state of the currently changing checkbox.
I have already tried below code:
var cb_click = function (e) {
var $this = $(this); // $this will contain a reference to the checkbox
var tabstrip = $("#myTabStrip").data("kendoTabStrip");
var selTab = tabstrip.select(tabstrip.tabGroup.children("li[innerText='" + $this.val() + "']"));
if ($this.is(':checked')) {
tabstrip.enable(selTab, true);
}
else {
tabstrip.enable(selTab, false);
//selTab.css('class', 'k-state-disabled');
}
};
Please help me find a solution for this issue.
initially all the tabs will be disabled and on check change event of checkboxes i need to enable or disable the respective tabs based on check state of the currently changing checkbox.
I have already tried below code:
var cb_click = function (e) {
var $this = $(this); // $this will contain a reference to the checkbox
var tabstrip = $("#myTabStrip").data("kendoTabStrip");
var selTab = tabstrip.select(tabstrip.tabGroup.children("li[innerText='" + $this.val() + "']"));
if ($this.is(':checked')) {
tabstrip.enable(selTab, true);
}
else {
tabstrip.enable(selTab, false);
//selTab.css('class', 'k-state-disabled');
}
};
Please help me find a solution for this issue.