Hi,
When I tried to filter the grid by pressing the buttons on top of the grid, the filtering does not appear to work.
I just dont know where I went wrong. I have done quite a few of them without issues, but on this one, i cannot see where the problem is. I have now triple check the code and I still can't see it!
Adding here a link to the dojo: https://dojo.telerik.com/@galedin/EXAZIJIx
Thanks,
Hi Monica,
I think you did i great job obtaining the filter object and now you just need to pass it to the data source filter() method:
function filterTestId(id) { var grid = $("#grid").data("kendoGrid"); if (id != 0) { let filterGroup = { FilterName: "TestIDFilterGroup", logic: "and", filters: [] }; filterGroup.filters.push({ field: "TestId", operator: "eq", value: id, FilterName: "TestIDFilterGroup" }); grid.dataSource.filter(filterGroup) }
Updated Dojo: https://dojo.telerik.com/AtAmekUN
In case the requirement is different please let me now.
Regards,
Nikolay
Hi Monica,
I am happy to hear I was able to help.
Regarding the filtering problem, there was, indeed, a bug that was fixed with the 2022.3.913 release. I will leave it below for your reference.
You can also check the release notes from this release or from any other here.
Regards,
Nikolay