I have created and added tabs in code behind, yet the javascript on tab selected does not show the attribute.
Here is my code:
And then my javascript is simply:
count is always 0 and getattribute is always undefined.
Any help would be appreciated.
Thanks
Loren
Here is my code:
var tabPanel = new RadTabStrip();
tabPanel.OnClientTabSelected = "onTabSelected";
var newTab = new RadTab() {Text = "All", Selected = true};
newTab.Attributes["type"] = "0";
tabPanel.Tabs.Add(newTab);
....
....
foreach (var department in deparmentsDt)
{
var newTab = new RadTab() {Text = department.strDepartmentGroup_Name};
newTab.Attributes["type"] = department.intDepartmentGroup_ID.ToString();
tabPanel.Tabs.Add(newTab);
}
And then my javascript is simply:
function onTabSelected(sender, args) {
var tab = args.get_tab();
var attr = tab.get_attributes();
alert(attr.get_count()+" - " +attr.getAttribute("type") + " - " + tab.get_text());
}
count is always 0 and getattribute is always undefined.
Any help would be appreciated.
Thanks
Loren