Author Topic: How to move the cursor to below cell when we press enter same as in Excel  (Read 3152 times)

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Hi sir,

How to move the cursor to the below cell when we press enter same as in Excel,  While inline editing instead of moving the cursor to next beside cell?

Thank you.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6309
    • View Profile
Re: How to move the cursor to below cell when we press enter same as in Excel
« Reply #1 on: February 22, 2016, 09:21:01 pm »
There is no direct option for it, however it can be done (as a workaround) by taking help of editorKeyDown event.

keyUpDown option should also be true.

Code: [Select]
editorKeyDown: function(evt, ui){
if(evt.keyCode == 13){ //enter key.
evt.originalEvent.keyCode = 40;//disguise down key.
}
},
« Last Edit: February 22, 2016, 09:29:50 pm by paramquery »

SureshB

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: How to move the cursor to below cell when we press enter same as in Excel
« Reply #2 on: February 22, 2016, 09:28:49 pm »
Good idea.

Thank you very much for your great support all the time.