Auto hide Radsliding Zone on postback

2 posts, 0 answers
  1. Jon
    Jon avatar
    17 posts
    Member since:
    Jun 2013

    Posted 02 Jul 2013 Link to this post

    I have created a sliding zone that contains a listbox of property addresses.  The user clicks on one of the properties and a postback occurs that populates the page with the property data.  When the page loads, the sliding zone is still extended out and the only way to get it to retract is to move the mouse over the sliding pane's control.  I've tried to force a retraction by setting the dockedpaneid on page load but that has no effect.  Any ideas on how I can do this?
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 04 Jul 2013 Link to this post

    Hi Jon,

    By design, RadSplitter preserve the state of the expanded/docked sliding panes over postback. If you need to avoid this behaviour you need to manually reset the ExpandedPaneId property of the sliding zone, e.g.:

    protected void Page_Load(object sender, EventArgs e)
        sZone1.ExpandedPaneId = string.Empty;

    I hope this helps.

    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 the blog feed now.
Back to Top