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

Maintaining horizontal alignment of controls

1 Answer 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Czeshirecat asked on 03 Aug 2017, 12:30 PM

I've a textbox on my database setup form that takes the database password.

 

At design time I have placed a checkbox to the right hand side of it so the user can select whether or not to see the encrypted characters or not. I want the checkbox to be positioned in line with the text box when displayed to the user.

 

At design time it is, but when theming is applied it loses its alignment (please see attached file)

 

I've tried repositioning the checkbox when the textbox is painted but that doesn't work.

 

How can I keep these two controls anchored to each other as they should be please?

 

 

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 07 Aug 2017, 08:35 AM
Hello Claire, 

Thank you for writing.  

I can suggest you two approaches. The first one is to apply the theme at design time and then applying the controls. It is convenient to use the Visual Studio options for aligning the controls.

The second approach is to apply the theme at run time and adjust the Location properties of the controls you want to be aligned. However, it is necessary to consider the control's size after applying the theme in order to obtain the desired result.

Feel free to use this approach which suits your requirement best.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
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
General Discussions
Asked by
Czeshirecat
Top achievements
Rank 2
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or