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

RenderSelectedPageOnly not working

6 Answers 234 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Richard Boarman
Top achievements
Rank 1
Richard Boarman asked on 06 Jul 2010, 04:55 PM
I have a RadTabStrip with 5 tabs and 5 corresponding RadPageViews  that each contain a RadGrid.
I have set the property on my RadMultiPage to

RenderSelectedPageOnly

 

 

="true"

 

and set the RadTabStrip property

AutoPostBack

 

 

="true"

 

but each pageview is loading each grid nevertheless. 
Does this property just not render the HTML (but would still load all the data in each grid).
I am trying to decrease the initial load time, so I only want the respective grid to load when the appropriate tab is selected.

Thanks in advance.
Richard Boarman

6 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 06 Jul 2010, 05:06 PM
Hi Richard Boarman,

As the name of the property goes it renders only the selected tab. This, however, does not mean that the rest of the tabs are not initialized on the server. I suggest that you check whether the respective tab should be visible and if so, only then bind its page view.

Best wishes,
Genady Sergeev
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
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 08 May 2011, 11:01 PM
Picking up on this, as the RadMultiPage does not seem to work. We have done what was explained by the original poster, but still, even with RenderSelectedPageOnly, it is obvious that every PageView is infact rendered. When switching between tabs, you can see that the controls in each PageView retains its state (like a RadGrid containing data even though it shouldn't).

We have already given up on the RadMultiPage in many cases as we have experienced so many problems with it, if the RenderSelectedPageOnly doesn't work either, I think we can give up completely...
0
improwise
Top achievements
Rank 1
Iron
Iron
answered on 09 May 2011, 09:21 AM
Update on this, after some investigation we decided to throw out the RadMultiPage altogheter and implement a custom module loader and we received a massive performance increase (at least 50%, sometimes even more) compared to using the RadMultiPage. My guess is that this is due to the fact that the RenderOnlySelectedPage property does not seem to work and the page size beause of this gets very large, and also perhaps multiple DataBind() etc. This is actually easy to miss if you at the same time change the AutoPostBack= true on the RadTabStrip, as it will appear as if each tabs is loaded by itself, which at least in our case, it wasn't.
0
Genady Sergeev
Telerik team
answered on 11 May 2011, 12:58 PM
Hi Patrik Johansson,

We are sorry to hear that you have faced such problems using RadMultiPage. We are not aware of such problem with RenderSelectedPageView only, how did you make sure that the tabs are actually rendered?  The easiest way is to check with a tool like fire bug. In general, the AutoPostBack = true and RenderSelectedPageViewOnly = true will emit as html only the page view that is visible (all tabs will be loaded in the memory however). If this is failing on your side, we will be glad to debug and research the problem. If this is the case, please open a support ticket and attach there sample project which reproduces the issue and we will troubleshoot it for you.

All the best,
Genady Sergeev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Jeff
Top achievements
Rank 1
answered on 25 May 2011, 06:23 PM
Does the statement 'all tabs will be loaded into memory' mean that the Page_Load(...) method will be called for each page that corresponds to a tab even if that tab is hidden?

Thanks,
- Jeff R.
0
Cori
Top achievements
Rank 2
answered on 27 May 2011, 12:57 PM
Hello Jeff,

That is exactly what that means, because it needs to perform a postback in order to produce the html for the tab selected, as RenderSelectedPageOnly, only outputs the selected PageView and nothing else. If you turn off that feature, it will output all the PageViews and it can avoid postbacks as the client-side tab navigation will work.

I hope that helps.
Tags
TabStrip
Asked by
Richard Boarman
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
improwise
Top achievements
Rank 1
Iron
Iron
Jeff
Top achievements
Rank 1
Cori
Top achievements
Rank 2
Share this question
or