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

RadDropDownList font and RadDateTimePicker alignment

1 Answer 229 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
ShareDocs
Top achievements
Rank 1
ShareDocs asked on 09 Dec 2012, 04:37 AM
Hi,

1) How can I change the font of the RadDropDownList items on the style builder ?
2) How Can I set the alignment of the RadDateTimePicker selected date to right on the style builder?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 12 Dec 2012, 05:17 PM
Hi Lior,

Thank you for contacting us.

1. RadDropDownList uses RadListControl to represents its items (RadListElement in fact). So if you change the theme of RadListControl in VisualStyleBuilder, this will change both the items in RadListControl and the items in the drop down of RadDropDownList.

2. To align the text of DateTimePicker, you need to set TextAlign property of RadTimeMaskedEditBoxElement. Currently, this property is not a RadProperty and can't be set through VisualStyleBuilder. However the desired behavior can be achieved easily through the code. For example:
this.radDateTimePicker1.DateTimePickerElement.TextBoxElement.TextAlign = HorizontalAlignment.Right;

I hope this helps. If you have further questions, feel free to write back.

Regards,
Anton
the Telerik team
Q3’12 of RadControls for WinForms is available for download (see what's new). Get it today.
Tags
Themes and Visual Style Builder
Asked by
ShareDocs
Top achievements
Rank 1
Answers by
Anton
Telerik team
Share this question
or