Unplanned
Last Updated: 28 Jan 2025 08:24 by ADMIN
Garrett
Created on: 15 Jan 2025 01:43
Category: Grid
Type: Feature Request
1
Enhance grid search so that pre-existing filters are not removed

Current configuration: server-side filtering

Desired behavior:

  1. Grid searches are "anded" to any existing filters
  2.  When the search box is cleared the pre-existing filters are retained
3 comments
ADMIN
Ivaylo
Posted on: 28 Jan 2025 08:24

Hello Garrett,

Thank you for the details provided.

I have updated the ticket type to Feature Request. The implementation of the feature will be evaluated based on client voting. You can stay up to date on the status of the request using the following link:

At this time, the Knowledge Base article referenced in my previous response demonstrates the desired behavior. Specifically, it restores the previously applied filters when the search box is cleared.

I hope this information was helpful and feel free to reach out if there are further questions or concerns.

Kind Regards,
Ivaylo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Garrett
Posted on: 21 Jan 2025 16:34

Yup, I understand that search piggy-backs on filtering.  Thanks for the example.  For "Desired behavior #2" above, I would need to add functionality to restore the previous filter once the search box is cleared.

I would still like to see this behavior available "out of the box" so that the grid behaves more like Excel, which is what users typically expect.  You can convert this to a Feature Request if that is more appropriate.

Thanks, Garrett

ADMIN
Ivaylo
Posted on: 21 Jan 2025 16:07

Hi Garrett,

Thank you for the details provided.

The search functionality relies on the "filter" method of the dataSource, which is also used by the filter menu. This method is the primary way to apply filters to the data source. Whether filtering manually via the menu or programmatically, dataSource.filter() controls how data is shown by specifying the filter conditions. All filtering must be done through this method to ensure the data is displayed correctly. 

In order to achieve the desired result, I would recommend using the approach from the following article:

The approach above is implemented for a Kendo UI Grid. To address this, I have created a sample REPL where I have implemented the same behavior:

I hope this information was beneficial. Feel free to reach out if additional information or assistance is needed.

Kind Regards,
Ivaylo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.