Programmatically reset splitter position

5 posts, 1 answers
  1. Jonathan Benedicto
    Jonathan Benedicto avatar
    2 posts
    Member since:
    Apr 2010

    Posted 15 Apr 2010 Link to this post

    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?
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. Jonathan Benedicto
    Jonathan Benedicto avatar
    2 posts
    Member since:
    Apr 2010

    Posted 19 Apr 2010 Link to this post

    Thanks.
  5. Calvin
    Calvin avatar
    42 posts
    Member since:
    Jul 2011

    Posted 18 Jul 2011 Link to this post

    Is there a workaround for this issue?

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

    thanks!
  6. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Jul 2011 Link to this post

    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!

Back to Top
DevCraft banner