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

RenderSelectedPageOnly question

1 Answer 52 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Santiago
Top achievements
Rank 1
Santiago asked on 27 Apr 2011, 09:58 PM
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,
Santiago.

1 Answer, 1 is accepted

Sort by
0
Cori
Top achievements
Rank 2
answered on 29 Apr 2011, 01:29 PM
Hello Santiago,

I think this demo would be of help to you:

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

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.
Tags
TabStrip
Asked by
Santiago
Top achievements
Rank 1
Answers by
Cori
Top achievements
Rank 2
Share this question
or