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

How To Change RadSlidingPane Property On RadSlidingPane OnClientCollapsed Event

1 Answer 34 Views
Slider
This is a migrated thread and some comments may be shown as answers.
Chandan Kumar
Top achievements
Rank 1
Chandan Kumar asked on 26 Jul 2010, 09:59 AM

Hello Sir,
i want to change spliter property like

DockOnOpen

 

="true" ClickToOpen="true"

 


on spliter client side event how can i achive it.
please help me.

Thanks
Chandan

for example :- if i write following event
function OnClientCollapsed(sender,args)
        {
            what code should written for set Property

            DockOnOpen="true" ClickToOpen="true"

 


        }

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 28 Jul 2010, 03:28 PM
Hi Chandan,

RadSplitter is a complex control that contains several child controls. The two properties that you are referring to are properties of two different child controls - RadSlidingPane (DockOnOpen) and RadSlidingZone (ClickToOpen). In order to set these two properties you need to get a reference to the correct client-side object. The OnClientCollapsed event is a RadSlidingPane's client-side event. You can use the following sample code to achieve the required result:
<script type="text/javascript">
    function OnClientCollapsed(slidingPane, args)
    {
        slidingPane.set_dockOnOpen(true);//sets DockOnOpen property to true
 
        var slidingZone = $find("<%= RadSlidingZone1.ClientID %>"); //get reference to the RadSlidingZone
        slidingZone.set_clickToOpen(true);//sets ClickToOpen property to true
    }
</script>

I hope this helps.


Sincerely yours,
Dobromir
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Slider
Asked by
Chandan Kumar
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or