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

DropDownList > ListElement > Font

3 Answers 253 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Scott Webber
Top achievements
Rank 1
Scott Webber asked on 27 Jul 2010, 04:06 PM
RadControls for WinForms Q2 2010 / 2010.2.10.071

I am trying to set the Font for the list elements of a drop down list. I am able to set the font using the Properties window but the setting does not effect the list elements when the application is run. At run time, the application creates an array of RadListDataItem which is used as the data source. I have also tried setting the Font property of the individual RadListDataItems.

Setting the font for the DropDownList works correctly for the text box associated with the list.

Thanks,
Scott

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 29 Jul 2010, 06:22 PM
Hi Scott Webber,

Thank you for reporting this issue.

This will be fixed in the upcoming service pack. The problem is that the synchronization code that maps the properties between the logical and visual items sets the wrong value priority to the visual items. Your Telerik points have been updated.

Write again if you have other questions.

 
All the best,
Victor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Nino
Top achievements
Rank 1
answered on 18 Jul 2013, 03:35 PM
Still have the same problem after more than 3 years...
0
Paul
Telerik team
answered on 23 Jul 2013, 02:01 PM
Hello Nino,

Thank you for writing.

You can easily set the font of the drop down list. You just have to subscribe to VisualListItemFormatting event and there you can change the whole appearance of the menu:
this.radDropDownList1.VisualListItemFormatting+=radDropDownList1_VisualListItemFormatting;
Font myFont = new Font("Segoe UI", 14, FontStyle.Bold);
 
private void radDropDownList1_VisualListItemFormatting(object sender, VisualItemFormattingEventArgs args)
{
     args.VisualItem.Font = myFont;
}

Here is a helpful article you may refer to: Customizing drop down list items appearance.

Hope that helps.

Regards,
Paul
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DropDownList
Asked by
Scott Webber
Top achievements
Rank 1
Answers by
Victor
Telerik team
Nino
Top achievements
Rank 1
Paul
Telerik team
Share this question
or