Move splitters at runtime

4 posts, 0 answers
  1. Oreades
    Oreades avatar
    4 posts
    Member since:
    Nov 2013

    Posted 27 Jan Link to this post

    Hello!

    I need to move the splitters at runtime. It's possible? How?

    I'm using Telerik WPF 2015.1.

    Thank you!

  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 28 Jan Link to this post

    Hello,

    We are not exactly sure that we completely understand the desired by you functionality. The splitters of RadDocking could be move without any concerns during run time and thus to change the sizes of the Panes. Please, check the attached video that demonstrates that and let us know if we didn't miss something.

    Could you please, provide us some more detailed information about the desired by you functionality and what exactly you need to achieve?

    We are looking forward to hearing from you.

    Regards,
    Nasko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Oreades
    Oreades avatar
    4 posts
    Member since:
    Nov 2013

    Posted 28 Jan Link to this post

    Resize the Splitters in code.

    Something like that:

    RadSplitControl1.SplitterPosition = 256.

    Thanks!
  5. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 29 Jan Link to this post

    Hello,

    RadDocking uses RadGridSplitter to provide you the functionality to re-size the Panes during run time. However, actually the measures of the Grid inside which the Panes are placed are changed. So, basically there isn't any built-in functionality of the GridSplitter that provides you the ability to achieve the desired. We suggest you to check the following article that answers in details why this is not possible and what actually is the functionality and the role of the splitter:
    http://blog.onedevjob.com/2012/01/08/moving-gridsplitter-with-code-behind-is-not-the-right-question/

    So, basically in order to move the GridSplitter from code behind you actually need to change the current size of the SplitContainers inside which the Panes are placed - by changing the Width and the Height of the SplitContainers from code-behind the GridSplitter should move as expected.

    We hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top