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

RadSplitContainer Multiple Contains, Resize when Docked Full Question

2 Answers 96 Views
Panel
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Mark asked on 18 Jan 2017, 02:21 PM

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 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
answered on 18 Jan 2017, 03:55 PM

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?

0
Accepted
Dimitar
Telerik team
answered on 19 Jan 2017, 10:46 AM
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.
Tags
Panel
Asked by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Answers by
Mark
Top achievements
Rank 2
Bronze
Iron
Veteran
Dimitar
Telerik team
Share this question
or