Completed
Last Updated: 08 Feb 2021 13:53 by ADMIN
Release R1 2021 SP2
Mike
Created on: 28 Jan 2021 20:51
Category: VirtualGrid
Type: Bug Report
0
RadVirtualGrid: Filter cell values are not cleared when FilterDescriptors are cleared.

Hi,

I have a RadVirtualGrid. I add a filter descriptor and then fetch the filtered data from the data store. I then clear the filters and perform a different fetch from the store. However, when I click in the filter value textbox the text from the previous filter operation is still there even though I purposely call radVirtualGrid.FilterDescriptors.Clear() prior to fetching the data from the store.

The filter text doesn't display in the filter row for the column where the filter was entered until I click in the text edit area.

How do I get rid of the text from the previous filter?

thanks,

Mike

3 comments
ADMIN
Nadya | Tech Support Engineer
Posted on: 29 Jan 2021 14:31

Hello, Mike,

Yes, you can use this as a workaround. Thank you for sharing it. 

If you have any other questions do not hesitate to contact us.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Mike
Posted on: 29 Jan 2021 14:22

Hi,

I figured it out. The FilterChanged event sender argument is a RadTextBoxEditorElement when you're entering text in the filter row for a text column. That allows you to do a

((RadTexBoxEditorElement)sender).Text = string.Empty;

when the circumstance is right. This removes the unwanted text from the RadTextBoxEditorElement so you don't have it hanging around needlessly.

thanks,

Mike

ADMIN
Nadya | Tech Support Engineer
Posted on: 29 Jan 2021 12:10

Hello, Mike,

Following the provided description I was able to observe the same behavior on my end. When clearing the FilterDescriptors collection the filter cell value still preserves the previously entered text.

This is why I have logged it in our feedback portal by making this thread public. You can track its progress, subscribe for status changes and add your comments on the following link: feedback item. Make sure that you subscribe to the item in order to get notified when its status has changed. I also update your Telerik Points

Let me know if you have any other questions.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.