This topic contains 2 replies, has 2 voices, and was last updated by Jai Jai 1 day, 22 hours ago.

datatable.search() fails on null column value


  • MikeRse
    Participant

    Member Reply #18139

    Hello,

    I am using mDataTables for my project and I would like to do some filtering based off of checkboxes/buttons/whatever the user decides. This functionality would be simple by using a function listener and calling

    (<any.$(‘.m_datatable’)).mDatatable().search(‘searchterm’,’column’);

    However, this seems to fail if a column returns a null for the value of the column. Is this known? Is there any suggested way to handle null value columns so that I can sill filter on them? Thanks!

    Jai
    Jai
    Keymaster

    Posts: 2292
    Support Staff Reply #18173

    Hi 🙂

    Thanks for your feedback. We will fix the search fails on the null value.

    Thanks

    Jai
    Jai
    Keymaster

    Posts: 2292
    Support Staff Reply #18374

    Hi 🙂

    Btw, what was the issue when the column is null?

    column = null;

    datatable.search(keyword, column);

    We seem can’t find the issue.

    Thanks

You must be logged in to reply to this topic.