RadDropDownList font and RadDateTimePicker alignment

2 posts, 0 answers
  1. ShareDocs
    ShareDocs avatar
    76 posts
    Member since:
    Oct 2012

    Posted 08 Dec 2012 Link to this post

    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.
  2. Anton
    Admin
    Anton avatar
    167 posts

    Posted 12 Dec 2012 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top