or
timezone: "Etc/UTC",$("#grid tbody").on("click", "tr", showError);showError.call($("grid tbody tr:first")); function showError() { if (documentReady) { var $this = $(this), dataItem = $this.data(); var id = GetId(dataItem); if (id != 0) { window.location.href = "/Error/ShowError/" + id; } } } function GetId(item) { var items = grid.dataSource.data(); for (var i = 0; i < items.length; i++) { var e = items[i]; if (e.uid == item.uid) { return e.ExceptionLogId; } } return 0; }var customers = [ {NUMBER:"P001",SellToName:"test1"}, {NUMBER:"U001",SellToName:"test2"}] var businessList = [ { NUMBER: "A5678", SellToCustomerNumber: "NOV" }]$(document).ready(function () { //chargement customer list format json var customerDataSource = new kendo.data.DataSource({ data: customers }); //chargement business list format json var businessListDataSource = new kendo.data.DataSource({ data: businessList }); //on initialise la grid $("#grid").kendoGrid({ dataSource: businessListDataSource, pageable: true, navigatable: true, groupable: true, sortable: true, height: 700, toolbar: ["create"], columns: [ { field:"NUMBER",title:"Numero"}, { field: "SellToName", title: "Nom", editor: numberDropDownEditor }, { command: "destroy", title: " ", width: "90px"}], editable: true }); function numberDropDownEditor(container, options) { $('<input required="required" data-text-field="SellToName" data-value-field="SellToName" data-bind="value:' + options.field + '"/>') .appendTo(container) .kendoDropDownList({ autoBind: false, dataSource: customerDataSource } ); } });