Refresh pageview load onTabSelecting.

1 posts, 0 answers
  1. regina
    regina avatar
    40 posts
    Member since:
    Sep 2012

    Posted 19 Oct 2012 Link to this post

    I have a tabstrip with approximate 20 pageviews.  I need to refresh the pageview loads onTabSelecting, this seems to be a very common thing but none of the solutions I have found actually seem to work for me,  I have gotten this to work other than the page within the pageview is not hitting the pageload and needdatasource events.  What am I missing that I need to do to make this work. Thanks in advance.  I have edited down the tabs so they are not all listed,

    function onTabSelecting(sender, args) {
                   
                   var multiPage = $find("<%=RadMultiPage1.ClientID %>");
                   var pageView = multiPage.findPageViewByID(args.get_tab().get_pageViewID());
     
                   switch (args.get_tab().get_pageViewID()) {
                       case "RadPageView2":
                           //pageView.set_contentUrl("~/pageviews/emailTemplates.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/emailTemplates.aspx");
                           break;
                       case "RadPageView3":
                           //pageView.set_contentUrl("~/pageviews/originalEmails.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/originalEmails.aspx");
                           break;
                       case "RadPageView4":
                           //pageView.set_contentUrl("~/pageviews/CourtList.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/CourtList.aspx");
                           break;
                       case "RadPageView5":
                           //pageView.set_contentUrl("~/pageviews/region.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/region.aspx");
                           break;
                       case "RadPageView6":
                           //pageView.set_contentUrl("~/pageviews/listmgmt.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/listmgmt.aspx");
                           break;
                       case "RadPageView7":
                           //pageView.set_contentUrl("~/pageviews/subscribers.aspx");
                           args.get_tab().get_pageView().set_contentUrl("pageviews/subscribers.aspx");
                           break;
                      
     
                   }
                   // alert("The ID of the selected RadPageView is " + args.get_tab().get_pageViewID());

Back to Top