I have a page where a radgrid holds a nested view template that expands and displays a RadTabStrip. Therefore, if more than one row is expanded, then more than one RadTabStrip is on the page at one time.
When a tab is selected, I perform some client side actions.
On PreRender, this function is called:
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
Dim txt As String = MatchesTabStrip1.SelectedTab.Text
....ExecuteClientScript("resetFunctionLinks('" & MatchesTabStrip1.ClientID & "','" & txt & "')")
End Sub
This is the client side function that passes in the tabStrip object into another function:
function resetFunctionLinks(myTab,txt) {
if (myTab) {
configureFunctionLinks(myTab,txt);
}}
When a tab is selected, I want to pass the tab strip into the same function as above (configureFunctionLinks():
function OnClientTabSelected(sender, eventArgs) {
var tab = eventArgs.get_tab();
var txt = tab.get_text();
var tabStrip = tab.get_tabStrip();
configureFunctionLinks(tabStrip, txt);
}
This (var tabStrip = tab.get_tabStrip();) is not correctly obtaining the RadTadStrip object and passing it into the function in the same manner that the “resetFunctionLinks” is handling it.
What am I missing?