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

Dropdown & List of Images and SQL Data

1 Answer 142 Views
VirtualGrid
This is a migrated thread and some comments may be shown as answers.
Abraham
Top achievements
Rank 1
Abraham asked on 01 Aug 2017, 11:07 PM

I need to load a "Dropdown & List" with images and data from a SQL Server table but not if I load the options with Entity Framework or some other option.

Could someone help me or recommend some similar example please?


1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 02 Aug 2017, 11:36 AM
Hello Abraham, 

Thank you for writing.  

In order to show images in RadDropDownList's items, you can use the VisualItemFormatting event and assign the desired image to the visual item or set the RadListDataItem.Image property after the binding the control. A sample example is demonstrated in the Demo application >> DropDown & List >> DropDownList >> Auto complete and Resizing demos.

The following help article is quite useful for populating with data: http://docs.telerik.com/devtools/winforms/dropdown-listcontrol-and-checkeddropdownlist/dropdownlist/populating-with-data/data-binding
It is up to you how you will extract the data. It is just necessary to set the DataSource property to a collection of the objects you want to display.

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
VirtualGrid
Asked by
Abraham
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or