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

StatusStrip always docked to CollapsiblePanel

2 Answers 60 Views
StatusStrip
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 21 Nov 2019, 10:29 AM

I have a RadForm with RadCollapsiblePanel docked left and a RadStatusStrip on bottom docked.

How is it possible to dock/fix the Statusbar complete on bottom and dock the CollapsiblePanel on the StatusBar?

The CollapsiblePanel is always left to the StatusBar and resize it.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 25 Nov 2019, 05:54 AM

Hello Martin,

The order of the controls in your form depends on the order you have added those controls to the form. The earlier added control will be on top, then the second one and so on. The controls have Z-index as well which indicates the paint order (elements with higher Zindex are painted over the elements with a lower one). The dock layout is based on the order they are added to the form. If you want to rearrange the controls in your form you can go the *.Designer.cs file and modify the InitializeComponent method to manually re-order how the controls are added to the form. 

Another possible solution I can suggest is to do it at run time in the code. You can use of SetChildIndex or BringToFront methods:

 this.Controls.SetChildIndex(this.radCollapsiblePanel1, 0);
 // or
 this.radCollapsiblePanel1.BringToFront();

More information on this topic you can find here: https://stackoverflow.com/questions/2607508/how-to-control-docking-order-in-winforms

The following KB article is quite useful on this topic as well: https://www.telerik.com/support/kb/winforms/details/docking-controls-on-a-form-in-a-windows-forms-application 

Feel free to use this approach which is more suitable for you.

I hope this information is useful. Let me know if you need further assistance.

Regards,
Nadya
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Martin
Top achievements
Rank 1
answered on 25 Nov 2019, 08:59 AM
I changed the order in Designer.cs-Class, Thank you!
Tags
StatusStrip
Asked by
Martin
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Martin
Top achievements
Rank 1
Share this question
or