Holt59 / datatable

Javascript Plugin for data tables creation
http://holt59.github.io/datatable/
MIT License
107 stars 42 forks source link

filter is not function after apply addRows #46

Closed leehengbing closed 3 years ago

leehengbing commented 3 years ago

Hi, I have 3 records exist in the datatable when the document is loaded. The filter and sort function is perform perfectly. But when i try to add in a record using addRows function, i can see the record added inside the datatable but when i try to perform filter function, it is always filter for the 3 records that is previously loaded only. And the sorting function is broken. Any idea ?

Holt59 commented 3 years ago

It's complicated to give you any hint without seeing how the date looks and how you call addRows, etc. Can you post something thrat reproduces the issue?

leehengbing commented 3 years ago

Hi, thanks for your reply. Already found the issues, it is because of re-declare the datatable object. Regards