I am trying to have a grid full of checkboxes that need to have their values (true/false) passed out of the grid into a JSON array.
I already have the template working to pull in the array and display true=checked and false=unchecked, but I cannot get any changes made to these checkboxes to be reflected in the JSON array.
var ds = new kendo.data.DataSource({ type: JSON, data: current, schema: { model: { fields: { Name: { editable: false, type: "string" }, Artifacts: { type: "bool" }, Compression: { type: "bool" }, Contrast: { type: "bool" }, ExposureLevel: { type: "bool" }, Noise: { type: "bool" }, Positioning: { type: "bool" }, Sharpness: { type: "bool" } } } } }) var gridIdWithHash = "#" + currentImageGridID $(gridIdWithHash).kendoGrid({ dataSource: ds, columns: [ { field: "Name", width: 10 }, { field: "Artifacts", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Artifacts ? checked="checked" : "" # ></input>' }, { field: "Compression", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Compression ? checked="checked" : "" # ></input>' }, { field: "Contrast", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Contrast == "1" ? checked="checked" : "" # ></input>' }, { field: "ExposureLevel", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.ExposureLevel ? checked="checked" : "" # ></input>' }, { field: "Noise", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Noise ? checked="checked" : "" # ></input>' }, { field: "Positioning", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Positioning ? checked="checked" : "" # ></input>' }, { field: "Sharpness", width: 10, type: "bool", //editor: customBoolEditor, template: '<input type="checkbox" class="qualityImageGrid" #= data.Sharpness ? checked="checked" : "" # ></input>' }, ], scrollable: false, editable: true, navigatable: true, });
The checkboxes show for all the fields and are usable, but they do not change the value.
