Given the following model:
And the following Grid definition:
I am getting the following Grid rendering:

I do not believe this is correct. The groups should read: Floor Plan: Plan 1 [1.0BR + 1.0BA] and Floor Plan: Plan 2 [2.0BR + 1.0BA].
I don't want the actual name of the field displayed, that's why I put in the [Display] attributes, which the column rendering honors. But since the DisplayAtribute has a GroupName property, the Grid should be honoring that first, then the Name if GroupName is not present, then if neither are present, the property name.
Thanks!
public class PropertyUnitModel { public Guid Id { get; set; } public Guid PropertyId { get; set; } public Guid FloorPlanId { get; set; } [Display(Name = "Floor Plan", Description = "Floor Plan", GroupName = "Floor Plan")] public string FloorPlanName { get; set; } public string UnitNumber { get; set; } [Display(Name = "SqFt")] public int SquareFootage { get; set; } public string Notes { get; set; }}And the following Grid definition:
@(Html.Kendo().Grid<PropertyUnitModel>() .Name("propertyUnitsGrid") .Columns(columns => { columns.Bound(p => p.UnitNumber).Groupable(false).Width(100); columns.Bound(p => p.SquareFootage).Groupable(false).Width(70); columns.Bound(p => p.Notes).Groupable(false); }) .Sortable() .Pageable(pager => pager.Refresh(true).PreviousNext(false).PageSizes(false).Input(false).Numeric(false)) .DataSource(dataSource => dataSource .Ajax() .Group(groups => groups.Add(p => p.FloorPlanName)) .Model(model => model.Id(p => p.Id)) .Read(read => read.Action("GetAllByProperty", "PropertyUnits", new { PropertyId = Model.Id })) ))I am getting the following Grid rendering:

I do not believe this is correct. The groups should read: Floor Plan: Plan 1 [1.0BR + 1.0BA] and Floor Plan: Plan 2 [2.0BR + 1.0BA].
I don't want the actual name of the field displayed, that's why I put in the [Display] attributes, which the column rendering honors. But since the DisplayAtribute has a GroupName property, the Grid should be honoring that first, then the Name if GroupName is not present, then if neither are present, the property name.
Thanks!