SHEET add row dynamically

Community Driven Extensions Project
Post Reply
kimg
Posts: 61
Joined: 22 Aug 2013, 17:13

01 Nov 2018, 15:43

Is there a way to detect that the cursor is in the last row and the last cell in the sheet?

I would like to add another empty row to the sheet when the user press TAB in the last columns last cell.
IS there an example on how to do this?
Today the cursor goes to the first cell in the first row.

I'm aware of the 'dynamics colums' context menu in which you add a new row. but i would like to do this with the method described above.

Kim
Primefaces 6.2 / Glassfish 5 / Payara 5.182

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

01 Nov 2018, 16:02

You will need to use custom JS to accomplish this like we do with the Context Menu example or "Extender". To get what you need to do to make TAB Insert a Row I suggest asking someone on the HandsonTable forums. They probably will be able to help you with the JS.

https://forum.handsontable.com/
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

kimg
Posts: 61
Joined: 22 Aug 2013, 17:13

01 Nov 2018, 16:57

Thank you.
I will try that and post a solution here.... :-)
Primefaces 6.2 / Glassfish 5 / Payara 5.182

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

01 Nov 2018, 17:20

Definitely let us know what you come up with!
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests