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
    http://www.telerik.com/help/silverlight/radcombobox-how-to-align-to-the-left-the-text-of-the-comboboxitem-when-it-is-too-long2.html

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

    Thanks,
     Paul
  2. Miroslav Nedyalkov
    Admin
    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!

    Greetings,
    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 in reply to Miroslav Nedyalkov Link to this post

    i cant find it

    please help me

  4. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1385 posts

    Posted 13 Jul 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"/>

    Regards,
    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