All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
div
id
=
"grid"
>
</
script
function onChange(arg) {
var selected = $.map(this.select(), function (item) {
if ($(item).find('.myclass').length == 1) {
$(item).removeClass('k-state-selected');
}
});
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
transport: {
read: "http://demos.kendoui.com/service/Northwind.svc/Orders",
dataType: "jsonp"
},
pageSize: 5
selectable: "multiple cell",
pageable: {
buttonCount: 5
change: onChange,
scrollable: false,
navigatable: true,
columns: [
{ field: "OrderID", title: "Order ID", width: 60 },
{ field: "CustomerID", title: "Customer ID", width: 90 },
{ field: "ShipName", title: "Ship Name", width: 220 },
{ field: "ShipAddress", title: "Ship Address", width: 280 },
{ field: "ShipCity", title: "Ship City", width: 110 },
//{ field: "ShipCountry", title: "Ship Country", width: 110 },
{
field: "ShipCountry",
title: "Ship Country",
width: 110,
template: '<
input
type
"checkbox"
class
"myclass"
></
>'
]