How to disable selection of next cell in the next column or row if the last cell

Tags: #<Tag:0x00007efc71a73db0>

Hello,

I would like to disable selection of next cell in the next column or row if I going out (by pressing Enter key or key arrows) from a last cell (same in Excel). How can I do it?

Jan

Hi @jan.zitniak

does the enterMoves: {row: 0, col: 0}, work as you expected?

Thank you @aleksandra_budnik for your answer, maybe I was wrong but I meant if I’m in the last cell and then I press Enter key I want to stay in the same (last) cell and don’t go for the next column. Same situation for with a row. Now is possible to move among cells infinity. I used enterMoves but it doesn’t work:
https://jsfiddle.net/janzitniak/pmorL02x/2/

enterMoves can be a function. Here’s an example http://jsfiddle.net/r13zsjLa/

Dear @aleksandra_budnik thank you for you help. I used

autoWrapRow: false,
autoWrapCol: false 

and it works as I expected.

Thank you for the update @jan.zitniak

1 Like