Hi.
I have a few search fileds (text, kendoDropDownList, kendoMultiSelect) just above my grid.
Each change of such a search field changes the dataSource.filter of the grid in my "change" function.
I have a problem with the combination of the filters.
For example:
choosing "a" as a "status" in the kendoDropDownList will bring all the records with status "a".
If after selecting "a" as a "status" I select "b" as a "type" in another kendoDropDownList I want to get
all the records with "status" "a" and "type" "b".
If after that I change the selection of "a" to "c" I want to get all the records with "status" "c" and "type" "b"
(removing the filter of "status" "a" and adding the filter of "status" "c" and "type" "b")
If I create a new filter in the "change" function and do:
dataSource.filter(newFilter)
I lose the filters I had before.
If I do:
var base = dataSource.filter();
newFilter = {logic: "or", filters: [...]};
base.filters.push(newFilter);
dataSource.filter(base);
I could get something like "status = 'a' and status = 'b'", and that's not what I want..
I would be happy to get help with that.
Thanks,
Eli.