Filter & Delete
Filter & Delete
nicolaspar
Posts: 2Questions: 0Answers: 0
Hi,
I'm trying to apply a filter and a delete. If I use the next code:
oTable = $ ('# list'). dataTable (...
Delete work ok.
If I use:
oTable = $ ('# list'). DataTable (...
Work the filter only ok. Note: you the casesensitive "DataTable".
Watch in (and switch dataTable by DataTable on line 19):
https://jsfiddle.net/nicolaspar/5wo89yor/1/
Any ideas please?
Thank you
Best regards
Nicolás
This discussion has been closed.
Replies
I solved it,
I use:
oTable = $('#list').dataTable(....)
and change oTable.draw(); by oTable.fnDraw();
oTable.fnDraw(); works fine!
Thank you
It looks like you are mixing the old and new APIs. I would generally recommend you use the new one.
Documentation for how to create a plug-in API method is available here.
Allan