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

Close pane on Page_Load, but splitter doesn't resize

2 Answers 33 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
bdrennen
Top achievements
Rank 1
bdrennen asked on 05 Jun 2010, 12:18 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 08 Jun 2010, 10:38 AM
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.
0
bdrennen
Top achievements
Rank 1
answered on 10 Jun 2010, 11:17 PM
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
Tags
Splitter
Asked by
bdrennen
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
bdrennen
Top achievements
Rank 1
Share this question
or