Inserting a row with values on button click

Tags: #<Tag:0x00007f137e1d7200>

Hi Team,

Is there a way to insert/ add a row with predefined values in an already populated hotTable.

eg: I have a table with 4 rows that is already populated. On click of a button, I would like to add a row having value 5 for every cell to that table.
Kindly suggest me how this can be achieved

Thanks,
Parul Gautam

HI Paul,

I have an example here that may help https://jsfiddle.net/tLzfqcne/

Let me know if it can be used to meet your requirements

Hi @aleksandra_budnik. It is not working for me.
I do not want to make any selection on table.
Kust wanted to add another row after last row

And one more thing I want to add a full row at one go. Not cell by cell

OK, that is not a problem.

What is the scenario for adding the new row? It should be added when the last one is filled or after any certain time?

Yes the table would be already filled. And we want to add after a button click.

and this one https://jsfiddle.net/ck4859zm/ ?

Hi @aleksandra_budnik. Thanks for the quick reply !!.
Is there a function called whenever a user applies sorting or apply a filter.

There is a callback called afterColumnSort for sorting and afterFilter for filtering

Here’s an example where I log sorting and filtering changes in the console https://jsfiddle.net/6gfd2x0h/