Skip to content

tomli/ag-grid-row-unselectable

 
 

Repository files navigation

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

About

A fork version of ag-grid with row selection disabling feature added

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 87.8%
  • CSS 10.5%
  • JavaScript 1.7%