Maintaining horizontal alignment of controls

2 posts, 0 answers
  1. Czeshirecat
    Czeshirecat avatar
    66 posts
    Member since:
    Jun 2016

    Posted 03 Aug 2017 Link to this post

    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?



  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4168 posts

    Posted 07 Aug 2017 Link to this post

    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.

    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.
Back to Top