I have a Kendo UI Grid grid that displays a data set, and I need to be able to select certain cells (cells in certain columns), and when I select them, return a DataItem for the row in which the selected cell is located, and the property of this DataItem on which it was pressed. I do not know if this is possible, but I have been working on it all day and have come to the conclusion that I need help.
Here is my grid and dataBound function, which currently gets me a DataItem, but what is it:
var hhGrid = hhDiv.kendoGrid({
dataSource: housing,
scrollable: false,
sortable: true,
selectable: 'cell',
columns: [
{ field: "Start", title: "Start", format: "{0:MM/dd/yyyy}", type: "date" },
{ field: "Stop", title: "Stop", format: "{0:MM/dd/yyyy}", type: "date" },
{ field: "Facility" },
{ field: "Area" },
{ field: "Pod" },
{ field: "Cell" },
{ field: "Comment" }
]
}).data('kendoGrid');
hhGrid.bind('change', grid_change);
function grid_change(e) {
var selectedCells = this.select();
var dataItem = this.dataItem(selectedCells[0].parentNode);
}
, , "" ? . , 'Area', 'Pod' 'Cell'. , . , , DataItem , ( grid_change), DataItem, .
, , "Pod", , , , , . , , , , .
!