or
var crud = "/MyCollections";var successCheck = function (data) { alert(data); }var dataSource1 = new kendo.data.DataSource ({ transport: { read: { cache: false, url: crud, data: { action: 'list' }, success: successCheck }, update: { cache: false, url: crud, data: { action: 'update' }, success: successCheck }, destroy: { cache: false, url: crud, data: { action: 'delete' }, success: successCheck }, create: { cache: false, url: crud, data: { action: 'create' }, success: successCheck } }, schema: { type: 'xml', data: '/TABLE/TREEVIEWS', model: { fields: { treeview: "treeview/text()", name: "name/text()", timestamp: "timestamp/text()"} } } });var dataSource = new kendo.data.DataSource({ transport: { read: { url: "/API/store/get", dataType: "json", data: function () { return { businessId: $("#BusinessId").val() }; } } }});var data = new kendo.data.DataSource({ transport: { read: { url: "getoutlets", dataType: "json", data: function () { return { businessId: $("#BusinessId").val() }; } } }});$(document).ready(function () { $("#outlets").kendoGrid({ sortable: true, dataSource: data, dataBound: function (e) { $(".dropdown").kendoDropDownList({ dataTextField: "StoreName", dataValueField: "StoreId", dataSource: dataSource }); console.log(e); }, columns: [ { field: "name", title: "Name (Supplier)" }, { title: "Name", template: "<input class='dropdown' id\='#=id #' value\='#=MappedStoreId #'></input>" } , { title: "", template: '<a href="\\#" class="green-button small" data-id\="#=id #">Update</a>', width: "110px" } ] // rowTemplate: kendo.template($("#rowTemplate").html()) });