or
$(document).ready(function () { LocationGridDataSource = new kendo.data.DataSource({ type: "json" ...); LocationGrid = ...}@using (Ajax.BeginForm("Bind", "Test", null, new AjaxOptions { OnSuccess = "BindOnSuccess" }, new { id = "BindForm" })){}function BindOnSuccess(context){ .... var location = LocationGridDataSource.get(context.id); var selection = LocationGrid.table.find('tr[data-uid="' + location.uid + '"]'); ....}The editor template contains a dropdowlist:columns.Bound(o => o.Product).EditorTemplateName("ProductItemDropDownList").ClientTemplate("#=ProductCode#");
@(Html.Kendo().DropDownList().Name("ProductCode").DataTextField("ProductCode").DataValueField("ProductId").DataSource(dataSource => dataSource.Read(read => read.Action("GetProducts", "Invoice")).ServerFiltering(true)))
The first problem is the cell remains empty after I select a product code. I expected to have there the code of the product. The second problem, I have no idea how to fill the rest of the cells representing product description, ... Thank you, Flaviu Boldea
Hi!