Prevent table scroll when a cell is selected

Tags: #<Tag:0x00007efc62207348> #<Tag:0x00007efc62207168>

Is it possible to prevent table from scrolling when cell selection is done programmatically and the selection is outside of the view?

Hi @SNK

Yes, the selectCell() method by default uses the scrollTo option to move the viewport, but if you un this method programmatically, then you can use it like this, with the 4th parameter set to false

14

And here’s a demo for tests https://jsfiddle.net/53jdcm8e/

Let me know if you’d need anything else.

Thanks! This works for me.

Great! Please feel free to open a new thread here on the forum or write us at support@handsontable.com if you’d need anything.