dynamic reload PageView content for RadMultiPage

7 posts, 0 answers
  1. Alexander
    Alexander avatar
    1 posts
    Member since:
    Sep 2008

    Posted 15 Sep 2008 Link to this post

    If there exists any possibility to make ajax reload of one PageView from RadMultiPage without reloading content of others pages ?

    For example.
    I'd like to load controls to RadMultiPage only after user select the corresponding Tab. My page is look like browser with many pages. Each PageView contains <frame>.  But after new page loads content of all other's pages reloading :(.
  2. Ricky Harlow
    Ricky Harlow avatar
    1 posts
    Member since:
    Jul 2009

    Posted 19 Apr 2010 Link to this post

    Did you ever find and answer to this?

    I am having the exact same issue.

    I set "

    RenderSelectedPageOnly=true"  but now if I go back to it is blank.  It will only render once.

  3. DevCraft R3 2016 release webinar banner
  4. Yana
    Yana avatar
    4547 posts

    Posted 20 Apr 2010 Link to this post

    Hello there,

    Please check our online example here, note that the tabstrip is subscribed to OnClientTabSelecting event and the postback is prevented when the pageview is already loaded.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. KVEE
    KVEE avatar
    3 posts
    Member since:
    Jul 2013

    Posted 03 Aug 2013 Link to this post

    Hi Telerik team,

    I have a requirement to auto-save data of current tab whenever tabs are switched so I do need to trigger the post-back of the page to save data first.  The example here includes the onTabSelecting which avoids post-back for pages that already loads and this doesn't exactly work for me.  Can you suggest something?  I've tried letting it post-back and the page automatically calls the RadMultiPage1_PageViewCreated method.  I'm fine with this but it has a problem if I click tab 1, 3, 4, then 2 (not in order of the tabs), then the reconstruction of the pages behaves incorrectly.  Pls help post an example where a post-back occurs on tab click yet still be able to support dynamic pageviews.


  6. Nencho
    Nencho avatar
    1446 posts

    Posted 07 Aug 2013 Link to this post

    Hello KVEE,

    You could still use the same example, but with a slight change. In order to prevent a PostBack from firing, the example uses a custom logic, implemented in the OnTabSelecting :

    function onTabSelecting(sender, args) {
               if (args.get_tab().get_pageViewID()) {

    I would suggest you to delete the client-side event OnTabSelecting, in order to assure that each time certain tab is clicked  - a PostBack will occur. Please note that you should alter just one more thing in the example. In the RadTabStrip1_TabClick server-side event, where the adding of the newly created PageView is implemented, you should make sure that there isn't any PageView already associated with the currently selected Tab. Please consider the following approach:

    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
                if (RadTabStrip1.SelectedTab.PageViewID == string.Empty)
                e.Tab.PageView.Selected = true;

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. Terry
    Terry avatar
    5 posts
    Member since:
    Oct 2012

    Posted 25 May Link to this post

    Hi Nencho,

    I have a similar scenario as above where I need to reload/refresh each tab/page view. If the content of one page view changes or gets updated because of a user action, the content of another page view also needs to get updated to reflect the change. I tried your suggestion above but it is not working for me. I get a null reference exception at the "e.Tab.PageView.Selected = true;" line. Can you suggest another approach where I can get the content of each page view to reload upon a tab click.

  8. Nencho
    Nencho avatar
    1446 posts

    Posted 30 May Link to this post

    Hello Terry,

    Regarding the issue that you described, with the null reference error thrown - this would suggest that no PageView is associated with the Tab's content that you aim to refresh. In other words, there is not content to refresh. I would suggest you to submit a support ticket, along with a runnable sample attached, demonstrating your current implementation and inability to refresh the PageView's content. Thus, we will be able to locally observe it and suggest you the proper implementation.

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
DevCraft R3 2016 release webinar banner