Author Topic: save button focus when there is no next cell  (Read 2248 times)

rallesaid

  • Newbie
  • *
  • Posts: 16
    • View Profile
save button focus when there is no next cell
« on: October 06, 2016, 01:29:22 am »
if I add a new row, and complete all fields, how can give focus to the Save button?, currently pressing enter or tab, the editor is maintained in the last cell when this is located in the last row.

rallesaid

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: save button focus when there is no next cell
« Reply #1 on: October 07, 2016, 12:53:12 am »
I forgot to mention that the options
editModel: {
            keyUpDown : false,
            allowInvalid : true,
            onSave : 'nextEdit',
            onTab : 'nextEdit',
            onBlur : 'validate',
        },

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: save button focus when there is no next cell
« Reply #2 on: October 12, 2016, 04:06:01 pm »
There is no inbuilt option to do it, you have to do it manually by listening to keydown event in editor and set focus on save button when there is no next cell.