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

Dynamic loading RadSlidingPane content only on Expand?

3 Answers 102 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Jerry
Top achievements
Rank 1
Jerry asked on 10 Dec 2008, 02:37 PM
Hello,

Is it possible to only load the controls inside of RadSlidingPane when the pane is being expanded?  I can only see client events that can handle expand/collapse actions.  Is it possible to handle these type of events on the server side?

thank you,

Jerry

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 12 Dec 2008, 03:20 PM
Hi Jerry,

As far as I understood your requirement, you want to execute a server function when the RadSlidingPane is expanded or just before it will expand. If so, you can hook up the OnClientExpanded or OnClientBeforeExpand client event depending on your requirement of the particular RadSlidingPane and then perform a postback or an ajax request to execute the server function. I think that the best solution will be to put a standard asp panel in the sliding pane and use the RadAjaxManager control to perform an ajax request to the server in order to populate the panel with the desired content. Furthermore, by using the RadAjaxManager control you will be also able to pass an argument if such is needed in your server logic. My other suggestion is to use the javascript built-in __doPostBack function and perform a postback in order to execute the server code.

I hope that the provided information is helpful, let me know how it goes and in case you need further assistance, please prepare and send me a sample, fully runnable reproduction project along with detailed reproduction instructions and detailed explanation of the encountered problem and the desired behavior.


Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Michael Diaz
Top achievements
Rank 1
answered on 16 Dec 2009, 11:44 AM
Can you provide an example on doing either of these tasks?
0
Svetlina Anati
Telerik team
answered on 16 Dec 2009, 02:16 PM
Hi Michael Diaz,

 I prepared a KB article which explains how to achieve the desired result and also contains a sample, fully runnable demo. You can find it below:


http://www.telerik.com/support/kb/aspnet-ajax/splitter/load-on-demand-radslidingpane.aspx

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Splitter
Asked by
Jerry
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Michael Diaz
Top achievements
Rank 1
Share this question
or