How to align the text to the left

4 posts, 0 answers
  1. Paul Cahoon
    Paul Cahoon avatar
    1 posts
    Member since:
    Jun 2010

    Posted 09 Mar 2011 Link to this post

    I have a DateTimePicker and after the user selects a value that text in the textbox is align to the right just as a RadComboBoxItem.  The RadComboBox has a SelectAllTextEvent

    Does anyone know how I would do this on the DateTimePicker?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 14 Mar 2011 Link to this post

    Hi Paul,

     The DateTimePicker control has a TextAlignment property. You could use it for this purpose.

    Hope this helps!

    Miroslav Nedyalkov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. Mamad
    Mamad avatar
    8 posts
    Member since:
    Jul 2017

    Posted 10 Jul 2017 in reply to Miroslav Nedyalkov Link to this post

    i cant find it

    please help me

  4. Martin Ivanov
    Martin Ivanov avatar
    2444 posts

    Posted 13 Jul 2017 Link to this post

    Hi Mamad,

    Here is an example how to set the TextAlignment property in XAML. You can also check the attached project.
    <telerik:RadDatePicker TextAlignment="Center"/>

    Martin Ivanov
    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