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

DropDownListFor question

Thread ID:





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


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 01:11 PM UTC

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.

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