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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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

http://mvc.syncfusion.com/demos/web/dropdownlist/dropdownlistfor

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

Thanks

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. 

Regards, 
Gopi G 


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.

;