or
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()) });$(document).ready(function () { var dataSource = new kendo.data.DataSource({ transport: { read: { url: "/API/store/get", dataType: "json", data: function () { return { businessId: $("#BusinessId").val() }; } } } }); $("#outlets").kendoGrid({ sortable: true }); $(".dropdown").kendoDropDownList({ dataTextField: "StoreName", dataValueField: "StoreId", optionLabel: "Select...", dataSource: dataSource });<script id="IDCOL-tmpl" type="text/x-kendo-tmpl"> <div class="IDCOL"> <script type="text/javascript"> $('.IDCOL').Block(); {{html "</sc"+"ript>"}} </div> </script>$("#container").kendoGrid({ .......... columns : [{ title : "ID", template : kendo.template($("#IDCOL-tmpl").html()) }, "StartTime", "EndTime"]});
This is the error:
"Microsoft JScript runtime error: Could not complete the operation due to error 80020101.") in globalEval (which is in jquery-1.7.1.js)