We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to bind ejDropDownList to a MVC list?

Platform: ASP.NET MVC |
Control: DropDownList |
Published Date: April 17, 2015 |
Last Revised Date: April 17, 2015


Populate the DropDownList control by using generic list.


To bind the DropDownList by using MVC generic list, the list of values from controller to the view is passed as illustrated in the following code example.


Create the class “Bikes and define the properties in that class section, so that it is used in the controller. Refer to the following code to define the class.

public class Bikes


public string text { get; set; }

public string bikeid { get; set; }


Create the strongly typed view by using generic list class, to get the list of values as illustrated in the following code example.


In the dropdown list fields property, you can pass the following parameters other than id, text, value;

htmlAttributes,imageAttributes, imageUrl,selected,SpriteCssClass,tableName

API Reference: http://help.syncfusion.com/UG/JS_CR/ejDropDownList.html

Demo: http://mvc.syncfusion.com/demos/web/dropdownlist/databindinglocal

UG documentation: http://help.syncfusion.com/ug/js/index.html#!Documents/overview20.htm

You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon