Can you give me a complete example for dropdownlist in the editortemplates?
For now I have to change all my dropdownlist in every views like this and I Wonder if it's possible to define a generic way in EditorTemplates?
.Name("NoRisque") // Name of the widget should be the same as the name of the property
.DataValueField("Value") // The value of the dropdown is taken from the EmployeeID property
.DataTextField("Text") // The text of the items is taken from the EmployeeName property
.BindTo((SelectList)ViewBag.NoSource) // A list of all employees which is populated in the controller