Completed
Last Updated: 21 Jun 2018 13:23 by ADMIN
ADMIN
Hristo
Created on: 13 Apr 2018 14:49
Category: GridView
Type: Bug Report
2
FIX. RadGridView - having groups, filters, sort descriptors and search query in the GridViewSearchRowInfo may leave the grid in an invalid state
Workaround: handle the SortChanging and FilterChanging events and clear the search criteria from the search row. The stored search string can later be restored in the SortChanged and FilterChanged events

string filter = string.Empty;
private void RadGrid_FilterChanged(object sender, GridViewCollectionChangedEventArgs e)
{
    this.radGrid.MasterView.TableSearchRow.Search(filter);
}

private void RadGrid_SortChanged(object sender, GridViewCollectionChangedEventArgs e)
{
    this.radGrid.MasterView.TableSearchRow.Search(filter);
}

private void RadGrid_SortChanging(object sender, GridViewCollectionChangingEventArgs e)
{
    this.filter = this.radGrid.MasterView.TableSearchRow.SearchCriteria;
    this.radGrid.MasterView.TableSearchRow.Search(null);
}

private void RadGrid_FilterChanging(object sender, GridViewCollectionChangingEventArgs e)
{
    this.filter = this.radGrid.MasterView.TableSearchRow.SearchCriteria;
    this.radGrid.MasterView.TableSearchRow.Search(null);
}


7 comments
ADMIN
Hristo
Posted on: 21 Jun 2018 13:23
Hi Raphaël,

The release is already live and you can download it from your Telerik account: https://telerik.com/account.

Regards,
Hristo
Raphaël MANSUY
Posted on: 21 Jun 2018 12:58
Hi,

Do you have any update about the release date of this fix ?
Thank you.

Regards.
Kamel
Posted on: 04 Jun 2018 21:15
Hi Hristo,
Thank you for your feedback and the work in progress.
Regards,
Kamel
ADMIN
Hristo
Posted on: 04 Jun 2018 08:31
Hi Kamel,

The search feature in RadGridView is working asynchronously. At the moment two independent async operations are happening at the same time, the first one is the default async implementation of the search and the other one is the async update in the project. At some point this results in an invalid state of the grid causing the error. We have investigated the discussed scenario in details and we have decided to introduce a new property IsSearchAsync. The default value of the property will be set to true. Setting the property to false would perform the search synchronously and with this setting the discussed in the issue exception should not be thrown. 

The R2 2018 SP1 release is scheduled for later this month, approximately around 20.06.2018.

Regards,
Hristo
Kamel
Posted on: 01 Jun 2018 12:02
Dear Hristo,
Thank you for already taking into account the urgency and working on the fix.
Do you have any update on how the developments are going? And if you have a more precise date for the R2 2018 SP1?
Thank you for your support.
Regards,
Kamel
ADMIN
Hristo
Posted on: 20 Apr 2018 09:55
Hello,

The issue is being investigated at the moment and likely it will be resolved for the R2 2018 release. At the moment, however, I cannot confirm an estimated date for the fix. You can subscribe to the item and be updated when its status changes.

Regards,
Hristo
Kamel
Posted on: 20 Apr 2018 07:47
Dear CustomerService,

We have the same issue on one of our Solution which is impacting several hundreds users with a around (1 crash / user / day). The provided workaround suggesting to empty the Searchbox is not satisfactory.

When could you provide a new version with this important fix?

Thank you and best regards,

Kamel