I am using a telerik:RadTabStrip in a .ascx user control. I want to call a function in a javascript object when the client tab is changed.
In the code-behind, I'm doing:
Where "foo" is a javascript object that contains some data, and a number of functions - one of which is clientTabSelected.
The object "foo", of course, is initialized prior to the user clicking a tab.
The problem is that when the user clicks on the tab, the "clientSelected" function is called, but not on the object "foo". In other words, when I trace through the execution, the correct function is being called, but within the function, "this" is not set to the "foo" object.
Any ideas as to how I can connect a Telerik event to a function in a specific object?