Closed julian-dimitroff closed 2 years ago
Hello, have you tried this ? https://l-lin.github.io/angular-datatables/#/advanced/rerender You have to destroy the current instance.
Sincerely, Adrien.
Hello @adrien-syrotnik , Yes with the code in your provided link it worked perfectly. Thank you!
Regards, Julian
I'm using Angular Datatables in one of my projects. I display data, and on a button click I have to reload the data. I have the following setup:
In .html
in the .ts file I have:
-->
I followed this example with a little tweak When I do it with
this.dtTrigger.next();
, I get the following error:When I comment the
this.dtTrigger.next();
I do not get the error, but I think what is happening, the old data is still there and the new data is rendered, and the pagination goes off and all 500+ rows appear in the table.I've read that this
dtTrigger.next()
function, manually re renders the table, but in my case it gives me an error.Can someone advice, what I might do wrong?
If additional information is needed, I can provide!
:globe_with_meridians: My Environment
Thanks in advance, Julian