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

Programmatically reset splitter position

4 Answers 187 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jonathan Benedicto
Top achievements
Rank 1
Jonathan Benedicto asked on 15 Apr 2010, 06:49 PM
How does one programmatically alter the splitter position in a RadSplitContainer to remove a fixed width that the user has specified? In other words, if a user resizes the splitter both panes in the RadSplitContainer get a fixed width, how can this be reset so that the 2 panes revert to the default width of 50% each?

4 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 19 Apr 2010, 01:31 PM
Hello Jonathan,

 There is no public API for reseting the splitter position inside a SplitContainer. We will consider adding such API.

Kind regards,
Miroslav Nedyalkov
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
Jonathan Benedicto
Top achievements
Rank 1
answered on 19 Apr 2010, 04:32 PM
Thanks.
0
Calvin
Top achievements
Rank 2
answered on 18 Jul 2011, 11:51 PM
Is there a workaround for this issue?

I'd like to set an initial splitter-position to something other than the default 50%.

thanks!
0
Miroslav Nedyalkov
Telerik team
answered on 19 Jul 2011, 08:37 AM
Hi Calvin,

 You can change the relative size of the groups using the ProportionalStackPanel.RelativeSize attached property. It is of type size and it is in relative units. The default value is (100, 100).
Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Docking
Asked by
Jonathan Benedicto
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jonathan Benedicto
Top achievements
Rank 1
Calvin
Top achievements
Rank 2
Share this question
or