This is a migrated thread and some comments may be shown as answers.

Cannot select pageview!?

0 Answers 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 11 Apr 2011, 08:56 AM
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....")

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Share this question
or