Angular ui grid - specific class for unselectable row
问题 I use angular ui-grid to display my data. I enabled the option to select row in gridOptions: enableRowSelection: true, But for specific rows I disable the selection by this code: $scope.mygrid.isRowSelectable = function (row) { if (row.entity.id == 2) { return false; } else { return true; } }; This is work, I cant select row with id =2, But I want to add class for this row to notify that it is unselectable. Any idea? 回答1: To Highlight the actual row: You can write your own rowTemplate and