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.

DropDownListFor question

Thread ID:





128071 Dec 29,2016 06:17 PM Jan 2,2017 08:11 AM ASP.NET MVC 1
Tags: DropDownList
Asked On December 29, 2016 06:17 PM


I'm migrating a project in asp webforms into mvc.

I've a form with a lot of drop down list. In webForms, define the control and bind the class is easy:

<asp:DropDownList ID="ddlPlanOcupacion" CssClass="combo" runat="server" SelectMethod="GetPlanesOcupacion" DataTextField="Nombre" DataValueField="IdPlanOcupacion" SelectedValue='<%# BindItem.BloqueInicial.IdPlanOcupacion %>' > </asp:DropDownList>

But in MVC, I need a lot of lines for create and bind the control


Is not there an easier way to create and bind with the model the dropdownlist?


Gopi Govindasamy [Syncfusion]
Replied On January 2, 2017 08:11 AM

Hi Manolo,  
Thanks for using Syncfusion products. 

We have checked your scenario for “create and bind with the model the dropdownlistFor”, Already we have document for this requirement please refer the below help document. 

Hope the above document helps to create easy way. 

Please let me know if you have any concerns. 

Gopi G 


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.