DropDownList > ListElement > Font

4 posts, 0 answers
  1. Scott Webber
    Scott Webber avatar
    1 posts
    Member since:
    Apr 2010

    Posted 27 Jul 2010 Link to this post

    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
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 29 Jul 2010 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nino
    Nino avatar
    9 posts
    Member since:
    Apr 2013

    Posted 18 Jul 2013 Link to this post

    Still have the same problem after more than 3 years...
  5. Paul
    Admin
    Paul avatar
    60 posts

    Posted 23 Jul 2013 Link to this post

    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 >>
Back to Top