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

DropDownLists not populating

Thread ID:





130094 Apr 21,2017 03:57 AM UTC Sep 12,2017 05:03 AM UTC ASP.NET MVC 3
Tags: DropDownList
Chris Erickson
Asked On April 21, 2017 03:57 AM UTC

I have 3 drop down lists in this example. Lists 1 & 2 don't databind/populate. List3 works as intended. I don't understand what I have done wrong with Lists 1& 2.
    IEnumerable<VenueViewModel> ddlDataSource = (IEnumerable<VenueViewModel>)ViewBag.ddl_ds;

@Html.EJ().DropDownList("venueList1").Datasource(ddlDataSource).DropDownListFields(df => df.Text("VenueName")).ShowRoundedCorner(true).Enabled(true).WatermarkText("Select a Venue")
@Html.EJ().DropDownList("venueList2").Datasource((IEnumerable<VenueViewModel>)ViewBag.ddl_ds).DropDownListFields(df=>df.Text("VenueName")).ShowRoundedCorner(true).Enabled(true).WatermarkText("Select a Venue")
@Html.EJ().DropDownList("venueList3").TargetID("vlist").ShowRoundedCorner(true).Enabled(true).WatermarkText("Select a Venue")

    <div id="vlist">
            @foreach (var v in ddlDataSource)
                <li>@v.VenueName, @v.Weekday, @v.VenueId</li>

As always, any help is appreciated.



Karthikeyan Viswanathan [Syncfusion]
Replied On April 24, 2017 06:15 AM UTC

Hi Chris,  
Thanks for contacting Syncfusion support.  
We were unable to reproduced your reported issue. All the dropdown list controls are working fine. So, could you please revert us the shared sample as issue reproducible one. It will be helpful as to provide a solution at earlier.   

Karthikeyan V.  

Andrew Jang
Replied On September 11, 2017 10:21 PM UTC

In my case, I found out that some other control before the DropdownList was malfunctioning. 

After fixing other control problem, dropdownlist started working right away.

Keerthana Rajendran [Syncfusion]
Replied On September 12, 2017 05:03 AM UTC

Hi Chris, 
Thanks for your update. We are happy to hear that your issue has been resolved. Please get back to us if you require any further assistance on this. We will be happy to assist you. 


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