Reset searchbuilder with a custom button

Reset searchbuilder with a custom button

mgherdoauimgherdoaui Posts: 2Questions: 1Answers: 0

Hi,

I have started a couple of weeks to use dataTables. (It is a great tool). I am fine with the bootstrap styling and a minimum of customization (enough at this stage). At this point I manage to do all the things that I wanted except one thing. I am using search builder using a button.

I have as well a separate "general reset button" which does the following:

action: function (e, dt, node, config) {
dt.columns(config.show).visible(true);
$('.eDariDatatable thead tr:eq(1) th input').val('').change();
dt
.colReorder.reset()
.search('')
.rows().deselect()
.order([0, 'asc' ])
.draw();
}

How can I reset as well all the filters of search builders using the "general reset button"?

Thanks in advance for your help

Mohamed

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.