HI, I would like to change the selected tab of the ultrawebtab using Javascript. I have tried the following and it does not work. It gets an error stating object does not support this property or method.
(document.getElementById("<%=UltraWebTab1.clientID%>").setSelectedIndex(0));
What is the correct code to do this?
Thank you.
Yes this did work for me. Thank you.
Now I have another problem. I want to set the second tab to be disabled. Here is my code:
var ultraTab = igtab_getTabById("UltraWebTab1");ultraTab.setSelectedIndex(0);
var detailtab = ultraTab.Tabs[1];
It detailtab.setEnabled =false;
It returns to the first tab (tab 0) but the secondf tab ( tab 1) is still enabled. I do not want my user to be able to click on the second tab. What am I doing wrong?
Hello kissthecook,
In order to get reference to the tab control you should use its utility function:
var ultraTab = igtab_getTabById("UltraWebTab1");
Then you can set the selected tab by “setSelectedTab” or “setSelectedIndex” functions:
ultraTab.setSelectedIndex(1);
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebTab_Object_CSOM.html
Try this approach and inform me what the results are.