Discussions concerning ui-grid 4.0 development. See the tutorials: http://ui-grid.info/docs/#/tutorial
vm.gridBudgetDetails = {
enableRowSelection: true,
enableRowHeaderSelection: false,
enableSorting: true,
multiSelect: false,
noUnselect: true,
enableCellEdit : false,
enableFiltering: true,
data: 'vm.projectresourcesdetails',
columnDefs: [
{ name: 'Type', width: '15%',
enableHiding: false,
field: 'budgettypename',
enableFiltering: false },
vm.gridBudgetResources.onRegisterApi = function(gridApi) {
//set gridApi on scope
$scope.gridApi = gridApi;
gridApi.selection.on.rowSelectionChanged($scope, function(row) {
vm.selectedresources = $scope.gridApi.selection.getSelectedRows();
});
gridApi.selection.on.rowSelectionChangedBatch($scope, function(rows) {
vm.selectedresources = $scope.gridApi.selection.getSelectedRows();
});