问题
In AG-Grid, How to make a floating row not editable when a column is defined as editable?
Is it possible to use floatingCellRenderer to prevent cell editing for the floating row cell?
floatingCellRenderer: function(params) {
if (params.node.floating) {
do_something_here_to_prevent_this_cell_editing;
}
}
I am using the default cell editors for text/select on the grid.
回答1:
jsfiddle
all you need to do is make a function that checks whether or not a row is floating:
function notFloating (params){
return !params.node.floating
}
then pass that into the editable
attribute of the affected column
来源:https://stackoverflow.com/questions/41645592/in-ag-grid-how-to-make-a-floating-row-not-editable-when-column-is-defined-as-ed