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

Closing Sliding pane on a button click

5 Answers 78 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
A2H
Top achievements
Rank 1
A2H asked on 23 Feb 2011, 05:10 AM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 24 Feb 2011, 04:36 PM
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!
0
A2H
Top achievements
Rank 1
answered on 01 Mar 2011, 05:53 AM
Thanks Telerik Team,

Thats what exactly what I need.

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

Thanks,
A2H
0
Julie
Top achievements
Rank 1
answered on 07 Mar 2012, 09:26 PM
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
0
Marin Bratanov
Telerik team
answered on 09 Mar 2012, 04:11 PM
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!
0
Julie
Top achievements
Rank 1
answered on 09 Mar 2012, 04:48 PM
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);
Tags
Splitter
Asked by
A2H
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
A2H
Top achievements
Rank 1
Julie
Top achievements
Rank 1
Share this question
or