We have a page that uses a Kendo Grid to display data that is fetched from a URL using JSON.
Our page has two ways of filtering the data - a "search" field (for simple, quick filtering) and column filters (the out-of-the-box Kendo solution) for advanced users.
The problem is that these two filtering methods can interfere with each other:
- The user types "Bob" into the search filter (this adds a filter on several columns, including "Name"), something like:
(name CONTAINS "Bob") or (company CONTAINS "Bob") or (email CONTAINS "Bob")
- The user adds a "starts with" filter on the "Name" column - they suddenly get no results because the Kendo column filter changes our search filter to this:
(name STARTSWITH "Bob") and ((company CONTAINS "Bob") or (email CONTAINS "Bob"))
This now returns no results because neither company or email contain "Bob".
Ideally what we want to do is to have two levels of filtering - a first level provided by the "search" field, and a second level provided by the column filters. I've tried having two data sources (one created from another), but so far I've not quite been able to make it work. Does anyone have any ideas?