SearchBuilder Conditions doesnt work after adding another condition and modifying the value of 1st
SearchBuilder Conditions doesnt work after adding another condition and modifying the value of 1st
![Abdelrahman_Alnashar](https://secure.gravatar.com/avatar/b93315d8979b2537927f6ed5d570b260/?default=https%3A%2F%2Fvanillicon.com%2Fb93315d8979b2537927f6ed5d570b260_200.png&rating=g&size=120)
I tested this issue in 2 different examples and it didn't work in both.
Example: example here
In searchBuilder, when adding a condition, as the first condition, giving it a particular value, and then adding another condition also with a value, the dataTable filters according to what was specified but, if we go back to the first condition and change its value the table doesn't filter according to the value changed. *
! I am working on the server side, so the server-side processing option is set to true.
$(document).ready( function () {
$('#datatable').DataTable({
dom: 'QBfrtip',
processing: true,
serverSide: true,
ajax: {
url: '/api/web/items'
},
columns: [
{ data: 'id', name: 'id' },
{ data: 'name', name: 'name' },
{ data: 'description', name: 'description', sortable: false },
{ data: 'vendor', name: 'vendor', sortable: false },
{ data: 'price', name: 'price' },
{ data: 'category', name: 'category', visible: false },
{ data: 'material', name: 'material', visible: false },
{ data: 'unit', name: 'unit', visible: false },
],
ordering: false,
order: [[0, 'asc']],
searchBuilder: {
columns: [3, 4, 5, 6, 7],
conditions: {
string: {
'=': null,
'!=': null,
'contains': null,
'starts with': null,
'ends with': null
},
num: {
'=': null,
'!=': null
}
}
}
});
$('.dt-buttons .btn').removeClass('dt-button');
});
! I hope my issue is clear
Replies
Hi @allan, I hope you can look at my problem in your free time and see if you can help me fix it.