or
|
Requirements |
|
| RadControls version | 2010.2.713.40 |
| .NET version | 4.0 |
| Visual Studio version | 2010 |
| programming language | C# |
| browser support |
all browsers supported by RadControls |
Hi,
I am trying to select tab from client-side javascript and select a corresponding view. Below is my code.. tab.get_pageView() returns null and I am not sure why. If I manually clicked on each tab corresponding pageView shows just fine, so my pageView exists.. What am I doing wrong? Is there better way of doing this?
Thanks!!
Kate
var tabStrip = $find("<%= rtsAllOtherTabs.ClientID %>");
var tab = tabStrip.findTabByValue("User");
if (!tab)
{
alert(
"There is no tab with text \"" + text + "\"");
return false;
}
tab.select();
//works til this line
var pv = tab.get_pageView(); // now pv is null
pv.set_selected(
true);
return false;