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

Change item format based on exterior criteria

1 Answer 18 Views
ListControl
This is a migrated thread and some comments may be shown as answers.
Keith
Top achievements
Rank 1
Keith asked on 15 Jul 2019, 10:39 PM

I have a listbox and want to set some of the items as bold based on various criteria.

Example 1:

Listbox contains a list of all employees and I want to bold the employees who are listed as "working" in another table.

 

Example 2:

Listbox contains a list of ALL Products and I want to bold the ones that are that are in are on sale (as identified in another table).

 

I've looked at the examples of changing format based on selection or hover, but I can't figure out how to translate that into the above use cases.

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 18 Jul 2019, 10:56 AM
Hello Keith,

Items appearance in RadListControl can be customized by making use of the VisualItemFormatting event. More information about formatting items is available here: https://docs.telerik.com/devtools/winforms/controls/dropdown-listcontrol-and-checkeddropdownlist/listcontrol/customizing-appearance/formatting-items. For convenience, I prepared a small sample project, based on the information that you provided so far and attached it to this thread. 

Could you please check it and let me know how this works for you.

Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListControl
Asked by
Keith
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or