Remaining columns in the grid are read only
My question here is when I check and followed by uncheck for a particular row , that row is still in edit state , since i am not doing the reverse of "Set". How do i take out that row from saving?
$('.check_row').live('click', function (e) {
var topDeviceRoleCode = $("#ddlHeaderDeviceRoleCode").data("kendoDropDownList").value();
//alert(topDeviceRoleCode);
var grid = $("#DeviceDetailsGrid").data("kendoGrid");
var models = [];
//find the selected models
grid.tbody
.find(":checked")
.closest("tr")
.each(function () {
models.push(grid.dataItem(this));
});
//update the models value
for (var i = 0, length = models.length; i < length; i++) {
models[i].set("DeviceRole", topDeviceRoleCode);
}
});