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

How to align the text to the left

3 Answers 191 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Paul Cahoon
Top achievements
Rank 1
Paul Cahoon asked on 09 Mar 2011, 05:11 PM
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

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 14 Mar 2011, 09:23 AM
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!
0
Mamad
Top achievements
Rank 1
answered on 10 Jul 2017, 02:55 PM

i cant find it

please help me

0
Martin Ivanov
Telerik team
answered on 13 Jul 2017, 01:53 PM
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.
Tags
DateTimePicker
Asked by
Paul Cahoon
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Mamad
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or