Switching Tab On PageLoad For Ajaxified TabStrip

2 posts, 0 answers
  1. James
    James avatar
    20 posts
    Member since:
    Jan 2012

    Posted 26 Nov 2012 Link to this post

    Hi guys,

    Our current set-up on our homepage is a RadTabStrip with a multipage for the tabs. The control is ajaxified and the Multipages are loaded on demand using the following approach: http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx.

    I was curious as to whether you guys have found a solution that will allow me to select a specified tab (via a query string or other input) programmatically. At the point of pageLoad i have no multipages in the collection other than the initially selected tab, so I'm assuming the selection will need to be made on the client side.

    Let me know if there's any further info i can provide.

    Many thanks in advance!
    Jack
  2. James
    James avatar
    20 posts
    Member since:
    Jan 2012

    Posted 28 Nov 2012 Link to this post

    It appears i have had some success. After scouring you forums and other posts i have managed to get this to work (it seriously appears as if no one else has managed). I managed to work out that the issue was brought about by Ajaxifying the control. Despite the tab being selected, the onClick event was still not firing.

    Using the javascript function you provided here to select the tab from a value stored in a hidden field, i simply switched out tab.select() for tab.click() and it's working perfectly.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top