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

PanelBar Load on demand with Multipage

4 Answers 61 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
tri
Top achievements
Rank 1
tri asked on 03 Feb 2011, 11:10 AM
Hi

I have a  similar front-end to the Outlook Navigation demo for the panelbar using mutlipage controls, the different is they are separated by a splitter because we needed the splitter functionality.

In the solution we have we are using RenderSelectedPageOnly="true" on the multipage and using an AjaxManager so we can change the page the page when the panelbar is clicked. This was done because some of the pages called by the multipage can take a while to load and we didn't want them all loading at once.

However now each page is loaded when it is needed, which is all well and good but some of the users change page many times and others will stay on the same page.

Is there a way to have load on demand similar to the Tabstrip Demo that has the JS

<script type="text/javascript">
function onTabSelecting(sender, args)
{
    if (args.get_tab().get_pageViewID())
    {
        args.get_tab().set_postBack(false);
    }
}
</script>

So once a page is loaded it is not loaded again?

Thanks

4 Answers, 1 is accepted

Sort by
0
tri
Top achievements
Rank 1
answered on 04 Feb 2011, 11:28 AM
Anyone?
0
Accepted
Yana
Telerik team
answered on 07 Feb 2011, 02:01 PM
Hello,

You can use the same approach with RadPanelBar and its OnClientItemClicking event but in this case RenderSelectedPageOnly should be set to "false".

Best wishes,
Yana
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
tri
Top achievements
Rank 1
answered on 10 Feb 2011, 12:15 PM
Thanks I will give this ago and see if it works
0
tri
Top achievements
Rank 1
answered on 10 Feb 2011, 04:00 PM
Cheers this appears to do the trick, I had used this before but it didn't exactly do what because I hadn't put my different pageviews into separate user controls. This was the step I was really missing thanks for the help.

Tags
PanelBar
Asked by
tri
Top achievements
Rank 1
Answers by
tri
Top achievements
Rank 1
Yana
Telerik team
Share this question
or