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

There a way to Disable the RadSlidingPane?

3 Answers 47 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Fred
Top achievements
Rank 1
Fred asked on 14 Nov 2008, 08:12 PM
Is there a way to disable the Sliding Pane?  I tried setting it it to visible=false but the it gives me javascript errors.

So now I would like to just disable it instead. Perferable on server-side but if client-side is the only way then I'd have to work with that.

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 17 Nov 2008, 02:31 PM
Hello Fred,

I am not quite sure what exactly you mean by "disable a RadSlidingPane" - do you mean that you want it to be invisible (as you have tried setting its Visible property to false) or to forbid its expansion or something else? In case you want to hide the tab I suggest to use the RadSlidingPane's client-side hideTab method which is listed here. In case this is not what you want to achieve, please provide a more detailed explanation of what you mean by "disable" and what is the exact desired behavior.

Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nataraj Vedula
Top achievements
Rank 1
answered on 20 Nov 2008, 05:23 AM
Hi Fred,

I think this will help you.

 

function DisableRadSlidingPane(sender, args)

 

{

args.set_cancel(

true);

 

}

 

function EnableRadSlidingPane(sender, args)

 

{

args.set_cancel(

false);

 



In .cs file

 

this

.SlidingPane1.OnClientBeforeExpand = "DisableRadSlidingPane";

 

 

 

this.SlidingPane1

.OnClientBeforeExpand = "EnableRadSlidingPane";

 

 

 



Regards,
Nataraj

 

0
Fred
Top achievements
Rank 1
answered on 24 Nov 2008, 05:48 PM
Thank you very much! I think this will work.
Tags
Splitter
Asked by
Fred
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Nataraj Vedula
Top achievements
Rank 1
Fred
Top achievements
Rank 1
Share this question
or