Closing Sliding pane on a button click

6 posts, 1 answers
  1. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 22 Feb 2011 Link to this post

    Hi
    I have used a radsplitter,and inside radsplitter I have used a radslidingpane.
    Hierarchy is likethis :
        RadSplitter1    
        RadPane1
                RadSlidingZone1
                    RadSlidingPane1
    All my controls are inside the sliding pane.I have a button inisde the radsliding pane
    My query is : I want to close the pane on a buttton click inside the radsliding pane.
    How can I acheive this.
    Please help me

    Thanks,
    A2H
  2. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 24 Feb 2011 Link to this post

    Hi A2H,

     I have created and attached a sample page that demonstrates the required functionality. Please note a few details:

    The  "return false;" in the button handler declaration - it is used to prevent the postback.

    The usage of server code to uniquely identify the elements would be useful in a more complex scenario.

    All the best,
    Marin
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 28 Feb 2011 Link to this post

    Thanks Telerik Team,

    Thats what exactly what I need.

    Thanks for Your Support............

    Thanks,
    A2H
  5. Julie
    Julie avatar
    3 posts
    Member since:
    Mar 2012

    Posted 07 Mar 2012 Link to this post

    Hi, I have the same problem but,  i do server side validation on the Click event and i just want close the panel only if the validation is succeed.  I can i do this???


    Julie
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 09 Mar 2012 Link to this post

    Hi Julie,

    In this case you can simply inject the call to the JavaScript function from the server once your custom conditions are met. How to inject scripts from the server is explained in greater detail here

     

    Regards,
    Marin
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  7. Julie
    Julie avatar
    3 posts
    Member since:
    Mar 2012

    Posted 09 Mar 2012 Link to this post

    Thanks! 

    My problem was than i'm was not associate the first parameter of the function RegisterStartupScript to the good object.

    My code is this and it works very well.

    string script = "<script type='text/javascript'>FermerRechercheAvancee();</script>"; ;
    ScriptManager.RegisterStartupScript(BtnRecherche, this.GetType(), "AppelFermerRechercheAvancee", script, false);
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017