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

How to design this

1 Answer 25 Views
LayoutControl
This is a migrated thread and some comments may be shown as answers.
JLM
Top achievements
Rank 1
JLM asked on 12 Mar 2018, 02:33 PM

Hi

I'm with the trial version of Telerik for Winforms and I'd like to design the following layout:

I want to have a simple combobox at the left of the screen with some predefined options. At the right of the screen, I'll have a group of controls composed by a label, a textbox and a button. I want to have multiple groups but only one will be available to the user when he choose an option from the combobox.

I'm trying to use the LayoutControl, but I have a problem: I'm not able to have 2 or more controls under the same container (my idea is to make visible/not visible the containers to show the correct one). I tried to put a panel on the layout and, later, to create the controls inside it... but the controls are assigned automatically to a new layout item instead the panel I created.

 

How can I do this?

 

Thank's in advance

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 13 Mar 2018, 07:39 AM
Hi,

Yes, this is a known limitation of the layout control. In this case, you need to add the panels to the form, add the controls to them and then add the panels to the layout control. This is logged for improvement in our Feedback Portal. You can track its progress, subscribe to status changes and add your comment to it here

Please note that the layout control is not designed for such scenarios. It is designed so the controls in it are resized proportionally with the form. In your case, you can design this by using UserControls (or panels) and just show/hide them. I have attached a small example that shows this approach. 

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

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
LayoutControl
Asked by
JLM
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or