Dynamic loading RadSlidingPane content only on Expand?

4 posts, 0 answers
  1. Jerry
    Jerry avatar
    14 posts
    Member since:
    Oct 2007

    Posted 10 Dec 2008 Link to this post

    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
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 12 Dec 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael Diaz
    Michael Diaz avatar
    5 posts
    Member since:
    Oct 2009

    Posted 16 Dec 2009 Link to this post

    Can you provide an example on doing either of these tasks?
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 16 Dec 2009 Link to this post

    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.
Back to Top