Author Topic: editFirstCellInRow does not work correctly  (Read 2147 times)

Syreta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 19
    • View Profile
editFirstCellInRow does not work correctly
« on: October 08, 2018, 02:34:49 pm »
Hi,

when I add a new row to my grid, I want to to be able to edit the first cell automatically without a click.

I found the function editFirstCellInRow() for this. But when I call this function, the input field of the first cell is displayed only for a very short moment, then it disappears immediately!
Incidentally, the same happens when I call the function goToPage(). The grid scrolls down to my new added row and after a very short moment it scrolls up to the penultimate (already existing) row.

Do I have to change any initializing options of my grid to get this functions working correctly?

I'm using v5.1...

Thank you in advance for your help!

Best Regards,
Syreta
« Last Edit: October 08, 2018, 04:20:07 pm by Syreta »

Syreta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: editFirstCellInRow does not work correctly
« Reply #1 on: October 08, 2018, 04:09:34 pm »
Update:

I think there is no bug in the functions, but in the grid!
When I add a new row to the grid and scroll down manually, the behavior is the same! It scrolls down, I can see my new added row for a short moment and then it automatically scrolls up to the penultimate row and I have to scroll down a second time (but only for the one row I added)...  :o

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: editFirstCellInRow does not work correctly
« Reply #2 on: October 08, 2018, 08:29:54 pm »
It happens because of the auto height of rows.

Please try autoRow: false

Syreta

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: editFirstCellInRow does not work correctly
« Reply #3 on: October 09, 2018, 11:18:56 am »
This works for me - great thanks!  :)