UI freeze with deep nested grouping

PROBLEM

When the RadGridView is bound to a large data and you group by a number of columns (e.g. 6 or more columns) you might experience a slow response or freeze of the UI.

SOLUTION

Until we find a decent solution please use the following workaround:

Subscribe to the Grouping event and define its handler as below:

private void RadGridView1_Grouping(object sender, GridViewGroupingEventArgs e) 
{ 
    Dispatcher.BeginInvoke((Action)(() => 
    { 
        this.RadGridView1.CurrentItem = null; 
    })); 
} 
Private Sub RadGridView1_Grouping(ByVal sender As Object, ByVal e As GridViewGroupingEventArgs) 
    Dispatcher.BeginInvoke(CType(Sub() 
                                     Me.RadGridView1.CurrentItem = Nothing 
                                 End Sub, Action)) 
End Sub 
In this article
Not finding the help you need? Improve this article