or
01.@(Html.Kendo().Grid<Models.AgentCommissionDetail>()02..Name("commissionGrid")03. .Columns(04. col =>05. {06. // cols.. 07. })08. .ClientDetailTemplateId("detailTemplate")09. .DataSource(dataSource => dataSource10. .Ajax()11. .ServerOperation(false)12. )13. .Events(events => events.DetailInit("initDetail"))14. .BindTo(Model.GroupedDetails)01.@(Html.Kendo().Grid<Models.AgentCommissionDetail>()02. .Name("details_#=CustomerNr#")03. .Columns(col =>04. {05. // cols06. })07. .DataSource(dataSource => dataSource08. .Ajax()09. .ServerOperation(false)10. .Sort(p => { p.Add(x => x.ArticleGroup); p.Add(x => x.DiscountGroup); p.Add(x => x.ProductGroup); p.Add(x => x.Revenue).Descending(); })11. )12. .Pageable()13. .Sortable()14. .ToClientTemplate()15.)1.function initDetail(e) {2. var grid = $("#details_" + e.data.CustomerNr).data("kendoGrid");3. grid.dataSource.data(e.data.Details);4.}@(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)