Declined
Last Updated: 29 May 2025 16:44 by Teddy
Teddy
Created on: 14 Apr 2025 13:53
Category: DataGrid
Type: Bug Report
1
DataGrid: Blank group name when data you group by is set at a later stage
If the data you want to group by is not set by the time the data grid's ItemsSource is set, then the grouping doesn't work as expected. Everything gets into a single group called (blank)
4 comments
Teddy
Posted on: 29 May 2025 16:44
Ah, okay. I missed that. I didn't realize it wasn't raising PropertyChanged. If this is fixed in the demo, then great. Keep this closed. thanks for the clarification.
ADMIN
Nasko
Posted on: 29 May 2025 16:25

Hi Teddy,

You're absolutely right in your observations. Initially, the property used for grouping is null, and even after it's set to a non-null value, the group remains blank. However, this happens because, in the original sample, INotifyPropertyChanged wasn't triggered when the grouped data changed.

Here’s the relevant part of the original code:

public SecurityType? SecurityType => Security?.SecurityType;

And here’s the updated version that properly raises OnPropertyChanged:

// NOTE: Raises PropertyChanged.
public SecurityType? SecurityType
{
    get => _securityType;
    set => SetProperty(ref _securityType, value);
}

Additionally, for the grouping engine to react to OnPropertyChanged, the ApplyDataOperationsOnPropertyChange setting must not be False. One approach is to bind this property to a value in your ViewModel and enable it when the grouping property is updated and data is initialized.

All these adjustments have been made in the updated sample project. With these changes, the engine now correctly regenerates the groups in response to property changes. Based on this, the issue was marked as declined.

That said, if there's something I’ve missed feel free to let me know - we can absolutely reopen the issue if needed.

Regards,
Nasko
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.

Attached Files:
Teddy
Posted on: 29 May 2025 14:31
To clarify... This is still technically a bug, right? If I have data I want to group by, it's null when it's first put into the datagrid, and then that data is set after some time, you're not updating the groups to reflect the new values. I didn't say it wasn't an issue anymore. I was just saying we don't need the fix because we don't have that use case in our application.
ADMIN
Nasko
Posted on: 29 May 2025 13:44

Hi Teddy,

Upon further investigation, the behavior was found to be related to the application logic rather than an issue with the control itself. Therefore, the item status has been updated to Declined.

Regards,
Nasko
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.