ag-Grid Disable Horizontal FillHandle

Viewed 406

Is it possible to disable the javascript Ag-Grid fill handle horizontally ?

I see it is possible to get the fill direction from utilising the fillOperation function, but there is nothing in the docs about disabling a horizontal fill.

In the examples on the Fill Handle info page on below link you can fill the name across all columns which would be incorrect.

enter image description here

Is it best then to use the fillOperation function and just not copy anything unless the direction is up/down?

https://www.ag-grid.com/javascript-grid-range-selection-fill-handle/

1 Answers

As of Version 24.0.0, you can use the fillHandleDirection property in gridOptions and set it to y.

You can do "x", "y" or "xy" and also there is a function to change it on the fly

gridOptions.api.setFillHandleDirection(direction);

This is all available in the ag grid docs

AG-Grid Docs

Related