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.
Unfortunately, activation email could not send to your email. Please try again.

Dropdownlist how to show data to index 0 instead value empty

Thread ID:





118190 Feb 9,2015 10:26 PM Feb 10,2015 07:21 AM ASP.NET MVC 1
Tags: DropDownList
Aun Fever
Asked On February 9, 2015 10:26 PM

i have ejDropdownlist but i don't want to show value empty index 0

i want to show data to index 0 

Gobalakrishnan S [Syncfusion]
Replied On February 10, 2015 07:21 AM

Hi Fever,

Thanks for using syncfusion products,

Query: Dropdown list how to show data to index 0 instead value empty

We would like to let you know that we have provided a property called “selectedItemIndex” which is used to specify which item value to be displayed in the dropdown list. If you want to specify particular item index value to be displayed in the dropdown list, please use this property during dropdown initialization like as below.

@Html.EJ().DropDownList("bikeList").Datasource((IEnumerable<Bikes>)ViewBag.datasource).SelectedItemIndex(0).DropDownListFields(df => df.ID("bikeid").Text("text").Value("text"))

For your convenience we have prepared a sample .You can download the sample from the below location.

Sample Download Link:


You can refer the following common user guide for ASP.NET MVC to know more about getting started with our components. Under each components we have provided “Concepts and features” section which explains about the features of the particular component.


You can also refer the following class reference link for JavaScript, which showcases all the properties, methods and events supported by each component. Our ASP.NET MVC components are created as a wrapper for JavaScript components. So you can refer the following link to know about the list of api’s supported in ASP.NET MVC.


Please let us know if you have further queries.


Gobalakrishnan S


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.