Selection of cells

Tags: #<Tag:0x00007efc719e7c98> #<Tag:0x00007efc719e7ae0>

I have to select the entire column starting from below the selected cell. Can you please help me with that.

Hi @tejasmurkya

I think in this case you would need to use selectCells method: https://handsontable.com/docs/javascript-data-grid/api/core/#selectcells and using the afterOnCellMouseDown hook: https://handsontable.com/docs/javascript-data-grid/api/hooks/#afteroncellmousedown select the cells below the currently selected one. Would that meet your requirements?

Can you please provide a demo on jsfiddle or any other platform

@tejasmurkya

Here’s an example: https://jsfiddle.net/handsoncode/vLfrnbpa/ Does it meets your requirements?

No because if you click on C12 it selected C12 and C13 only I want all the cells selected below them.
Also if you click A1 it select cells upto only A11 not further.

Hi @tejasmurkya

I’m not sure why it behaves this way on your side. On my side it’s exactly as you described it - I select C12 and all cells below are also selected, this works for any other case as well.

Please view the video in this link

@tejasmurkya

Thanks, I can see it now. So the problem was when the table wasn’t fully visible in the viewport. Can you please check it now? https://jsfiddle.net/handsoncode/xLgtyz5u/

Hey, thanks this works as needed.

@tejasmurkya

Great, thank you for the confirmation. I will close this topic then.