or
var testDataSource = new kendo.data.DataSource( { transport: { read: { url: "/api/Grids/Events", dataType: "json", contentType: "application/json; charset=utf-8", type: "POST", data: function () { return { filterId: filterId }; } }, parameterMap: function (options) { return JSON.stringify(options); } }, schema: { model: { id: "organizationDeviceId", fields: { organizationDeviceName: { type: "string" }, EventName: { type: "string" }, EventDetails: { type: "string" }, EventSeverity: { type: "string" }, EventDate: { type: "date" } } // End of fields }, // End of model data: "Entries", total: "TotalCount" }, sort: { field: "EventDate", dir: "desc" }, pageSize: 14, serverPaging: true, serverSorting: true, serverFiltering: true });var EventsDataGrid = $("#eventsGrid").kendoGridWithTitles({ selectable: "row", dataSource: testDataSource, columnMenu: true, filterable: true, scrollable: true, sortable: true, resizable: true, height: 500, toolbar: kendo.template($("#filterToolbarTemplate").html()), columns: [ { title: Globalize.localize("Dashboards_Events_DeviceName"), field: "organizationDeviceName", template: "<a href='//OrganizationDevice?organizationDeviceId=#= organizationDeviceId #'>#= organizationDeviceName #</a>" }, { title: Globalize.localize("Dashboards_Events_EventName"), field: "EventName" }, { title: Globalize.localize("Dashboards_Events_EventDetails"), field: "EventDetails" }, { title: Globalize.localize("Dashboards_Events_EventSeverity"), field: "EventSeverity" }, { title: Globalize.localize("Dashboards_Events_Date"), field: 'EventDate', template: "<div>#= kendo.toString(EventDate, CloudSAAS.GeneralDateTimeFormat) #</div>" } ], pageable: { input: true, numeric: false },}).data("kendoGrid");var EventsDataGrid = $("#eventsGrid").kendoGridWithTitles({ selectable: "row", dataSource: { transport: { read: { url: "/api/Grids/Events", dataType: "json", contentType: "application/json; charset=utf-8", type: "POST", data: function () { return { filterId: filterId }; } }, parameterMap: function (options) { return JSON.stringify(options); } }, schema: { model: { id: "organizationDeviceId", fields: { organizationDeviceName: { type: "string" }, EventName: { type: "string" }, EventDetails: { type: "string" }, EventSeverity: { type: "string" }, EventDate: { type: "date" } } // End of fields }, // End of model data: "Entries", total: "TotalCount" }, sort: { field: "EventDate", dir: "desc" }, pageSize: 14, serverPaging: true, serverSorting: true, serverFiltering: true }, columnMenu: true, filterable: true, scrollable: true, sortable: true, resizable: true, height: 500, toolbar: kendo.template($("#filterToolbarTemplate").html()), columns: [ { title: Globalize.localize("Dashboards_Events_DeviceName"), field: "organizationDeviceName", template: "<a href='//OrganizationDevice?organizationDeviceId=#= organizationDeviceId #'>#= organizationDeviceName #</a>" }, { title: Globalize.localize("Dashboards_Events_EventName"), field: "EventName" }, { title: Globalize.localize("Dashboards_Events_EventDetails"), field: "EventDetails" }, { title: Globalize.localize("Dashboards_Events_EventSeverity"), field: "EventSeverity" }, { title: Globalize.localize("Dashboards_Events_Date"), field: 'EventDate', template: "<div>#= kendo.toString(EventDate, CloudSAAS.GeneralDateTimeFormat) #</div>" } ], pageable: { input: true, numeric: false },}).data("kendoGrid");$("#txtActions").kendoEditor({ tools: [ "bold", "italic", "underline", "insertUnorderedList", "insertOrderedList", ], paste: function (e) { var editor = $("#txtActions").data("kendoEditor"); editor.value(CleanWordHTML(e.html)); //console.log(editor); }});