I am using ultrawebtab control .i have manually added the close button in each tab.when all tabs are closed tabcontrol is still visible in my page.i want to set visibility property by javascript.How to achieve it??
function closeTab(tabKey) { var myUltraWebTab = igtab_getTabById('tabControl'); if (myUltraWebTab != null) { myUltraWebTab.Tabs[tabKey].setEnabled(false); myUltraWebTab.Tabs[tabKey].setVisible(false); if (myUltraWebTab.getSelectedIndex() == -1) { myUltraWebTab.setVisible(false); } } }
Hello Prajakta ,
Thank you for posting in our forum.
If you want to hide the whole UltraWebTab control from your page you can get the element of the tab and set the "display" option in its style in order to hide the element.
For example:
var ultraTab = igtab_getTabById('UltraWebTab1');
ultraTab.element.style.display = "none";
Let me know if you have any questions or concerns regarding this.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://ko.infragistics.com/support