Close pane on Page_Load, but splitter doesn't resize

3 posts, 1 answers
  1. bdrennen
    bdrennen avatar
    13 posts
    Member since:
    Dec 2009

    Posted 04 Jun 2010 Link to this post

    I have a user control that incorporates a splitter with two panes. In one of the pages where I use it, I'd like for the left pane (rsz_column) to be closed, so in my Page_Load method I have the following:

    rsz_column.DockedPaneId = ""

    This works just fine--the page renders with the panel closed. However, my splitter is rendred with a 250-pixel wide margin on the left side of the page where the pane used to be. What can I do to get the splitter to resize the right pane so there isn't that gap on the left?

    Thanks!

    Bryan


  2. Answer
    Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 08 Jun 2010 Link to this post

    Hello Bryan Drennen,
    When you dock a sliding pane, its parent RadPane control resizes, so that the whole sliding pane is visible. The pane additionally preserves its size across postbacks. As a result, even though you undock the sliding pane, you do not set the size of the parent pane back to 22px and the pane preserves its size as it was before the postback, when you had a docked sliding pane. That is why, I would recommend that you set the Width of the parent RadPane control of the sliding pane back to 22px, when you undock the sliding pane.

    Best wishes,
    Tsvetie
    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
  4. bdrennen
    bdrennen avatar
    13 posts
    Member since:
    Dec 2009

    Posted 10 Jun 2010 Link to this post

    I was looking for a method in the RadPane control to cause it to close up and didn't think to assign a new width to it. This works beautifully. Thank you!

    Bryan
Back to Top