10.0.1 • Published 6 years ago

ag-grid-row-unselectable v10.0.1

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

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