How to Dock a sliding pane by default?

3 posts, 0 answers
  1. Ken
    Ken avatar
    13 posts
    Member since:
    Aug 2011

    Posted 31 Oct 2011 Link to this post

    I'm using the radsplitter with two sliding panes.

    I'd like to open and dock one of the panes automatically when the page loads so that it shows docked by default.

    I cannot find any samples on how to do this. Please advise.

    Thank you.
  2. Ken
    Ken avatar
    13 posts
    Member since:
    Aug 2011

    Posted 31 Oct 2011 Link to this post

    Here is the answer: 

    Set this on Page_Load:  
    Radslidingzone2.ExpandedPaneId = "Radslidingpane4";
    Radslidingzone2.DockedPaneId = "Radslidingpane4";

    Would be much easier the the pane just had a Docked property that you could set to T/F.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 01 Nov 2011 Link to this post

    Hi Ken,

    By design, only a single pane can be Expanded / Docked , If the pane contains a Docked / Expanded property this should allow multiple sliding panes to have it set. Having this property to the sliding zone avoid such misunderstandings.

    In addition, expanding and docking are self excluding operations when applied to a single sliding pane, i.e. docked pane is not expanded and vise versa - in case of multiple sliding panes, you can have one pane docked and another pane expanded. Thus if you want the pane to be docked you need to set a pane to be Docked when the page is loaded you need to set DockedPaneId property.

    Kind regards,
    Dobromir
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top