Search Builder unable to remove conditions
Search Builder unable to remove conditions
eloew
Posts: 4Questions: 1Answers: 0
I am unable to remove condtions from SearchBuilder. Using the instructions at: https://datatables.net/extensions/searchbuilder/customConditions#Removing-a-condition
Test case: https://live.datatables.net/yosupuhi/1/edit
I must be missing something. Does anyone know of a solution for this?
My init code:
var resultsTable = $("#example").DataTable({
searchBuilder: {
conditions: {
num: {
'between': null,
'!between': null
}
}
},
searching: { "value": true },
searchDelay: 350,
pageLength: 10,
layout: {
topStart: {
searchBuilder: {
liveSearch: false,
columns: [3],
depthLimit: 1
}
}
}
});
This question has an accepted answers - jump to answer
Answers
Move the configuration to the
searchBuilder
config options underlayout
. Updated test case:https://live.datatables.net/yosupuhi/2/edit
Kevin
Thanks Kevin. This work!
The condition restring is working for the num type, but if when filtering the string type it is not working. example: https://live.datatables.net/yosupuhi/7/edit
was using the wrong conditions. Working example: https://live.datatables.net/yosupuhi/9/edit