JSFiddle - React, Tailwind, and code Playground
by exe1
HTML
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.226/styles/kendo.common.min.css">
<link rel="stylesheet" href="http://cdn.kendostatic.com/2013.1.226/styles/kendo.default.min.css">
<script src="http://cdn.kendostatic.com/2013.1.226/js/kendo.all.min.js"></script>
<div id="grid"></div>
click on any 'discontinued' cell, then click on the checkbox. When using Chrome, the checkbox will disappear and the value will not be changed.
JavaScript
$(document).ready(function() {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "http://demos.kendoui.com/service/Northwind.svc/Products"
},
schema: {
model: {
fields: {
ProductID: { editable: false, nullable: true },
ProductName: { validation: { required: true } },
UnitPrice: { type: "number", validation: { required: true, min: 1} },
Discontinued: { type: "boolean" },
UnitsInStock: { type: "number", validation: { min: 0, required: true } }
}
}
},
pageSize: 10,
serverPaging: true,
serverFiltering: true,
serverSorting: true
},
height: 250,
filterable: true,
groupable: true,
sortable: true,
navigatable: true,
editable:"incell",
pageable: true,
selectable: 'multiple, row',
columns: [
"ProductName",
{ field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: 150 },
{ field: "UnitsInStock", title: "Units In Stock", width: 150 },
{ field: "Discontinued", width: 100 },
{ command: "destroy", title: " ", width: 110...