This should be a really simple task, but just like every other task I've attempted in asp.net using telerik it's stumping me for a good hour.
var pageView = multiPage.findPageViewByID("PageDetails");
pageView.set_selected(true);
I've tried using that ^ to select a pageview. I've also tried this:
var pageView = multiPage.findPageViewByID("PageDetails");
pageView.select();
And I've also tried selecting by index. I have found the multiPage fine in the javascript as I currently have the pageview changing as and when the user clicks a panel bar menu item. For that I have used this:
var item = args.get_item();
var newPageView = multiPage.get_pageViews().getPageView(parseInt(item.get_value()));
if (newPageView)
newPageView.set_selected(true);
But this doesn't work if I try to adapt it to my method.
Thanks.
EDIT: I've sorted it, had to use the clientID (i.e. "ctl00_MainContent....")
var pageView = multiPage.findPageViewByID("PageDetails");
pageView.set_selected(true);
I've tried using that ^ to select a pageview. I've also tried this:
var pageView = multiPage.findPageViewByID("PageDetails");
pageView.select();
And I've also tried selecting by index. I have found the multiPage fine in the javascript as I currently have the pageview changing as and when the user clicks a panel bar menu item. For that I have used this:
var item = args.get_item();
var newPageView = multiPage.get_pageViews().getPageView(parseInt(item.get_value()));
if (newPageView)
newPageView.set_selected(true);
But this doesn't work if I try to adapt it to my method.
Thanks.
EDIT: I've sorted it, had to use the clientID (i.e. "ctl00_MainContent....")