Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 970 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 970 Bytes

ag-Grid Row-Unselectable

A fork of ag-Grid which add the feature of disabling selection on row level.

How to use

Add "isNodeSelectable" property to the gridOptions , this property must be a function which accept a RowNode object as parameter and return a boolean value, the return value of this function will decide if the row can be selected or not.

eg:

        var gridOptions = {
            enableColResize: true,
            suppressRowClickSelection: true,
            rowSelection: 'multiple',
            columnDefs: columnDefs,
            isNodeSelectable: function (node) {
                return node.data.age >= 35;
            }
        };

Example in Plunker

Note

This feature can be used as a solution to issue Header Checkbox Not Able To Prevent Row Selection