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

Dropdownlist how to show data to index 0 instead value empty

Thread ID:





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

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 12:21 PM UTC

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.

Please sign in to access our forum

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