This is a migrated thread and some comments may be shown as answers.
Switching Tab On PageLoad For Ajaxified TabStrip
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 26 Nov 2012, 10:15 AM
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

1 Answer, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 28 Nov 2012, 02:58 PM
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.
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Share this question
or