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
2725
Javascript Change tab
posted

Hi

 

   Frustrated here tryng to do one of the most common things possible in JavaScript for WebTab. Change the tab. Can't find it anywhere.

 

Gary

Parents
No Data
Reply
  • 5368
    Suggested Answer
    Offline posted

    Here you go... the trick is to use the set_selectedIndex function.

    function

     

    OpenSomeTab() {

        var wt = Infragistics.Web.UI.WebTab.find("WebTab1");
        wt.set_selectedIndex(3);

    }

Children