Dropdown & List of Images and SQL Data

2 posts, 1 answers
  1. Abraham
    Abraham avatar
    1 posts
    Member since:
    Jul 2017

    Posted 01 Aug 2017 Link to this post

    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?

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3637 posts

    Posted 02 Aug 2017 Link to this post

    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.

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