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.

DropDownLists not populating

Thread ID:

Created:

Updated:

Platform:

Replies:

130094 Apr 20,2017 11:57 PM Sep 12,2017 01:03 AM ASP.NET MVC 3
loading
Tags: DropDownList
Chris Erickson
Asked On April 20, 2017 11:57 PM

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">
        <ul>
            @foreach (var v in ddlDataSource)
            {
                <li>@v.VenueName, @v.Weekday, @v.VenueId</li>
            }

As always, any help is appreciated.

Thanks,
Chris

        </ul>
    </div>

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

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.   
 


 
Regards,  
Karthikeyan V.  


Andrew Jang
Replied On September 11, 2017 06:21 PM

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 01:03 AM

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. 
 
Regards, 
Keerthana. 


CONFIRMATION

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.

;