In Development
Last Updated: 08 Jan 2025 12:50 by ADMIN
Martin Ivanov
Created on: 16 Dec 2024 12:28
Category: GridView
Type: Bug Report
1
GridView: The Items.Count value does not return items in collapsed groups when filtering is applied

When the RadGridView is filtered you can get all items in the data view using the Items collection property of the control. The count can be accessed with the gridView.Items.Count property.

If the RadGridView is grouped and then filtered, the Items.Count no longer returns the correct value. The count doesn't take into account the items that are in collapsed groups. Instead the count contains only the expanded group objects.

To work this around, use the following code instead of gridView.Items.Count.

int count = gridView.Items.OfType<object>().Count(); 

0 comments