or
<
div
id
=
"movies"
>
@(Html.Telerik().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(model => model.Title).Width(500);
columns.Bound(model => model.Price).Width(200);
})
.HtmlAttributes(new { style = "height: 380px;" })
.Scrollable()
.Groupable()
.Sortable()
.Scrollable ()
)
</
div
>
<
style
scoped>
#movies {
width: 692px;
height: 413px;
margin: 30px auto;
padding: 51px 4px 0 4px;
}
</
style
>
ViewBag.NoSource = new SelectList(db.Sources, "NoSource", "CodeSource");
@(Html.Kendo().DropDownList()
.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
)