Filter & Delete

Filter & Delete

nicolasparnicolaspar Posts: 2Questions: 0Answers: 0
edited April 2015 in Free community support

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

Replies

  • nicolasparnicolaspar Posts: 2Questions: 0Answers: 0

    I solved it,

    I use:
    oTable = $('#list').dataTable(....)

    and change oTable.draw(); by oTable.fnDraw();

    oTable.fnDraw(); works fine!

    Thank you

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    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

This discussion has been closed.