RenderSelectedPageOnly question

2 posts, 0 answers
  1. Santiago
    Santiago avatar
    14 posts
    Member since:
    Dec 2006

    Posted 27 Apr 2011 Link to this post

    Hi, we're using RenderSelectedPageOnly and AutoPostback to load on demand several page views. But now every time we change the selected tab an AJAX request is made (because of the AutoPostback), even though the tab had already been loaded.

    We would like to load on demand the selected tab only if it's the first time the user selects that tab. Otherwise the tab change should behave without the AJAX request, just like it would with RenderSelectedPageOnly=false

    Is there a way to achieve this behavior?

    Best regards,
  2. Cori
    Cori avatar
    562 posts
    Member since:
    Jul 2010

    Posted 29 Apr 2011 Link to this post

    Hello Santiago,

    I think this demo would be of help to you:

    When a tab is selected they check if a pageview has been associated with the tab and prevent the postback in the OnClientTabSelecting event.

    I hope that helps.
Back to Top