I have an angular-kendo-grid with a row template as below.
rowTemplate: "<tr data-uid='#: uid #'>" +
"<td align='center'> <input type='checkbox' ng-click='checkboxClicked(event)' ng-model='dataItem.selected' /></td>" +
"<td>{{dataItem.hostname}}</td>"
I need to detect which row's checkbox has been clicked. checkboxClicked is called with an undefined arg when used as above.
The grid is defined as
<div kendo-grid="availableDevicesGrid" k-options="availableDevicesKOptions"
....
However, $scope.availableDevicesGrid is always undefined in the controller.
I have a select all checkbox and a checkbox at each row and all I need to do is to find out which rows have been selected. Any help would be appreciated ?
rowTemplate: "<tr data-uid='#: uid #'>" +
"<td align='center'> <input type='checkbox' ng-click='checkboxClicked(event)' ng-model='dataItem.selected' /></td>" +
"<td>{{dataItem.hostname}}</td>"
I need to detect which row's checkbox has been clicked. checkboxClicked is called with an undefined arg when used as above.
The grid is defined as
<div kendo-grid="availableDevicesGrid" k-options="availableDevicesKOptions"
....
However, $scope.availableDevicesGrid is always undefined in the controller.
I have a select all checkbox and a checkbox at each row and all I need to do is to find out which rows have been selected. Any help would be appreciated ?