ASP.Net Ajax TabControl Client Side Scripting

Posted by: lbaker on 10 September 2017, 11:45 am EST

  • Posted 10 September 2017, 11:45 am EST

    I am trying to change the selected tab on the click of a button. I want to do this client side as I have no need to go back to the server just to do this.

    I have found that if I use


    var tabControl = Sys.Application.findComponent("<%=tcReportBuilder.ClientID%>" + _Pages");
    tabControl.moveNext();


    I can change the currently shown page, but this doesn't change the tab that is selected.

    Any help on this would be much appreciated.
  • Replied 10 September 2017, 11:45 am EST

    This seems to be a bug in C1TabControl. Since, C1WebUI is in maintenance mode now, it might take a while before this is fixed. Instead you could try our new suite called 'Wijmo' which are based on jQuery.
    You can download the setup from http://www.componentone.com/SuperProducts/StudioASPNET/
    and have a look at it's documentation here : http://helpcentral.componentone.com/nethelp/c1tabswijmo/

    To set the selected Tab in C1Tabs Wijmo, you can use the following code :

    var c1tab = $("#C1Tabs1");
    c1tab.c1tabs('select', 1);

    Let me know if you need further assistance.

    Regards
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels