RadSplitContainer Multiple Contains, Resize when Docked Full Question

3 posts, 1 answers
  1. Mark
    Mark avatar
    64 posts
    Member since:
    Oct 2014

    Posted 18 Jan Link to this post

    I have one split container on my form.  It is set to DOCK=FULL.  In that container, I have 5 panels, stacked on top of each other. I want the 2nd Panel, 3rd Panel and 5 Panel not to resize vertically when my form resizes. I do however, want it to grow horizontally.  I want the 1st and 4th Panels to grow both vertically and horizontally.  How can I achieve this with this control?

     

     

    Thanks

  2. Mark
    Mark avatar
    64 posts
    Member since:
    Oct 2014

    Posted 18 Jan in reply to Mark Link to this post

    Ok, I figured it out with SizeInfo for each SplitPanel,  

     

    My Next question is how to I prevent a user from resizing the panels manually with the SplitterElement? Is there a way to disable this? I still want the panels to stretch and shrink when the form is resized?  Is this possible?

  3. Answer
    Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 19 Jan Link to this post

    Hello Mark,

    Thank you for writing.

    To achieve this you need to override the OnMouseMove method:
    class MySplitContainer : RadSplitContainer
    {
        protected override void OnMouseMove(MouseEventArgs e)
        {
            //base.OnMouseMove(e);
        }
    }

    I hope this will be useful. Let me know if you have additional questions.

    Regards,
    Dimitar
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top