Author Topic: Can we add new row with keyboard?  (Read 1107 times)

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Can we add new row with keyboard?
« on: October 15, 2021, 12:53:45 pm »
In sample, if we want to add a new row, we have to click the "New Product" button  or use context menu. Can we use TAB(when cursor is in last editable cell) or DOWN(when cursor is in last editable row) keys of keyboard to add new row quickly?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Can we add new row with keyboard?
« Reply #1 on: October 15, 2021, 10:49:58 pm »
this feature is not inbuilt. It can be custom written by  listening to keydown event in cell and call addRow API method

https://paramquery.com/pro/api#event-beforeCellKeyDown

https://paramquery.com/pro/api#method-addRow

hyh888

  • Pro Enterprise
  • Full Member
  • *
  • Posts: 142
    • View Profile
Re: Can we add new row with keyboard?
« Reply #2 on: October 16, 2021, 04:19:14 pm »
It will be a very useful feature, if it is inbuilt.