or
var dsInvestments2 = new kendo.data.DataSource({ transport: { read: "/api/investments", create: { url: "/api/investments", type: "POST" }, update: { url: function (o) { return "/api/investments/" + o.ID; }, type: "PUT" }, destroy: { url: function (o) { return "/api/investments/" + o.ID; }, type: "DELETE" } }, group: [ { field: "AccountTypeName", dir: "desc" }, { field: "ProductName", dir: "desc" } ], schema: { model: { id: "ID", fields: { ID: { editable: false, nullable: false }, AccountTypeID: { editable: true }, AccountTypeName: { editable: false }, ProductID: { validation: { required: true } }, ProductName: { editable: false }, Name: { validation: { required: true } }, Commission: { validation: { required: true }, type: "number" } } } }});$("#investments").kendoGrid({ sortable: true, scrollable: true, toolbar: [{ name: "create", text: "New" }], dataSource: dsInvestments2, columns: [ { field: "AccountTypeID", title: "Account Type", template: "#=AccountTypeName#", editor: accountTypeEditor, hidden: true }, { field: "AccountTypeName", title: "Account Type", hidden: true, groupHeaderTemplate: "${ value }" }, { field: "ProductID", title: "Product", editor: productsEditor, template: "#=ProductName#", hidden: true }, { field: "ProductName", title: "Product", hidden: true, groupHeaderTemplate: "${ value }" }, { field: "Name", title: "Investment" }, { field: "Commission", title: "Commission", format: "{0:p0}", width: 100, type: "number", step: 0.01 }, { command: ["edit", "destroy"], title: " ", width: 200 }], editable: "inline"});$("#grid").kendoGrid({ dataSource: dS, columns: [{ title: "Copropriété", field: "Lib", template: "<a href='HistoriqueCompte.html'> ${Lib} <a/> " }, { title: "Agence", field: "RaisonSocialeLicence" }, { title: "Solde", field: "Solde" }] });"<a href='HistoriqueCompte.html?CodeCopro=${CodeCopro}&IndGmcCopro=${IndGmcCopro}&IdAgence=${IdAgence}' >${Lib}<a/> " }@(Html.Kendo().Grid<QRMG.VendorPortal.Model.Field>() .Name("Grid") .Columns(columns => { foreach (var fieldData in Model.Data[1]) { columns.Bound(fieldData.FieldName); } }) .DataSource(dataSource => dataSource .Server() ) 