RadGrid Issues with Filtering

2 Answers 15 Views
GridView
Luke
Top achievements
Rank 1
Luke asked on 19 May 2021, 08:49 PM

We are having an odd issue with the RadGrid component on build 2021.2.511.40

We have isolated the issue down to the base component in a sample project and the issue still occurs. I have attached the Sample project.

Steps to reproduce:

Filter the checkbox column to only show unchecked rows
Enter "alfred" as the description filter
Click the checkbox column on the bottom two rows (Sku RT34)
Remove description filter
This will result in the two unrelated records showing as checked. Scrolling or changing sorting will refresh the cell.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 May 2021, 11:03 AM
Hello, Luke,

The provided sample project is greatly appreciated. Following the described steps, I was unable to observe any undesired behavior. The attached gif file illustrates the observed result on my end with the latest version of the Telerik UI for WinForms suite. Am I missing something? Would it be possible to provide a sample video demonstrating the observed behavior on your end?

Thank you in advance for your cooperation. I am looking forward to your reply.

Regards,
Dess | Tech Support Engineer, Sr.
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.

Luke
Top achievements
Rank 1
commented on 20 May 2021, 01:07 PM

Dess,
To reproduce,
When clearing the filter, instead of using the menu widget, click into the Contains Box (which selects all) then press backspace to clear to the filter. You will then see the undesired behavior.
Regards,
Luke Potter
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 May 2021, 09:09 AM

Hello, Luke,

Thank you for the provided clarification. Now, I was able to replicate the problem with the filtered checked rows that appear after clearing the filter value in the text column. The attached gif file illustrates it in a better way.

I have logged it in our feedback portal by creating a public thread on your behalf. You can track its progress, subscribe for status changes and add your comments on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to use the following code snippet:

this.radGridView1.FilterChanging += RadGridView1_FilterChanging;
this.radGridView1.FilterChanged += RadGridView1_FilterChanged;

string propertyName = string.Empty;
Timer t;
private void RadGridView1_FilterChanged(object sender, GridViewCollectionChangedEventArgs e)
{
    if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove)
    {
        this.radGridView1.SortDescriptors.Add(propertyName, ListSortDirection.Ascending);
        t = new Timer();
        t.Interval = 100;
        t.Tick += T_Tick;
        t.Start(); 
    }

}

private void T_Tick(object sender, EventArgs e)
{
    t.Stop();
    this.radGridView1.SortDescriptors.Remove(propertyName);
}

private void RadGridView1_FilterChanging(object sender, GridViewCollectionChangingEventArgs e)
{
    if (e.Action == Telerik.WinControls.Data.NotifyCollectionChangedAction.Remove)
    {
        propertyName = e.PropertyName;
    }
}

I have also attached my sample project for your reference.

Regards,
Dess | Tech Support Engineer, Sr.
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/.

Tags
GridView
Asked by
Luke
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or