Skip to content

onNewRow event #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ianhk opened this issue Jan 8, 2013 · 3 comments
Closed

onNewRow event #344

ianhk opened this issue Jan 8, 2013 · 3 comments

Comments

@ianhk
Copy link

ianhk commented Jan 8, 2013

I'm using handsontable with the minSpareRows set to 1.

When a new row is added I need to do some work:

  • validation (my template isn't necessarily valid!)
  • update row headers
  • update the underlying store (I've implemented a row filter where the grid sees a subset of the full set of rows, but shares the row contents to avoid copying - if a new row is added I need to add it to the full set)

Right now I can simulate the event by keeping my own count of rows, then compare that during the onchange event. But it feels a little fragile. I'd rather be told when handsontable thinks it has created a new row object.

@setthase
Copy link

This is duplicate of #122

@warpech
Copy link
Member

warpech commented May 7, 2013

Thanks for your patience!

Handsontable 0.9.0-beta1 adds new callbacks afterCreateRow. You are welcome to test it. Until it is merged with master branch, you will need to checkout 0.9 branch

More about new Events.

I will close this ticket when branch 0.9 is merged with master. Thanks again!

@warpech
Copy link
Member

warpech commented May 21, 2013

Handsontable 0.9.0 now features the afterCreateRow callback.

More about new events here: https://github.com/warpech/jquery-handsontable/wiki/Events

@warpech warpech closed this as completed May 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants