How To Change RadSlidingPane Property On RadSlidingPane OnClientCollapsed Event

2 posts, 0 answers
  1. Chandan Kumar
    Chandan Kumar avatar
    68 posts
    Member since:
    Mar 2010

    Posted 26 Jul 2010 Link to this post

    Hello Sir,
    i want to change spliter property like



    ="true" ClickToOpen="true"


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


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

                DockOnOpen="true" ClickToOpen="true"


  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 28 Jul 2010 Link to this post

    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

    I hope this helps.

    Sincerely yours,
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top