02paru
(02paru)
October 23, 2018, 7:48pm
1
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
02paru
(02paru)
October 24, 2018, 10:44am
3
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
02paru
(02paru)
October 24, 2018, 10:47am
4
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?
02paru
(02paru)
October 24, 2018, 11:20am
6
Yes the table would be already filled. And we want to add after a button click.
02paru
(02paru)
October 24, 2018, 12:24pm
8
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/