How can I get column index after clicking on column border

Tags: #<Tag:0x00007efc609a2e10> #<Tag:0x00007efc609a2af0>

Hi there,
Is there any way I can get the column index after clicking on one of the cell border

Hi @rupeshfend

There is no hook dedicated to clicking a cell border. Have you tried afterOnCellMouseDown? Even if the border is thick like here https://jsfiddle.net/o5v62Ls9/ we still select a cell (see the result in the console).

1 Like

Correct, but afterOnCellMouseDown() does not triggers when manual column resizing is enabled, following a border click.

If you mean that you would like to get the index of this element when clicked

23

Then there is no hook for that, but once the user proceeds with the resizing of the column, we will get arguments from the afterColumnResize hook.

Maybe you could explain the need in more detail. This way, I’ll be able to specify if there’s another scenario you could follow to meet the needs.

1 Like

It’s okay, if this isn’t feasible right now, I’ll find another way to fulfill my requirement.
Thank You!!

You’re more than welcome @rupeshfend

Please feel free to open a new thread when needed.