Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
635
set visibility of ulrawebtab by javascript
posted

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);
                }
            }
        }

  • 29417
    Verified Answer
    Offline posted

    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://www.infragistics.com/support