DisplayContent doesn't work for GroupDescriptor

1 Answer 108 Views
Grid
Alexandre
Top achievements
Rank 1
Iron
Iron
Alexandre asked on 27 Mar 2023, 08:55 PM | edited on 27 Mar 2023, 08:55 PM

I use TelerikGrid, and in it I do grid grouping.

 new GroupDescriptor()
                {
                    Member = "workItemViewModel.WorkItemGroupId",
                    DisplayContent = "Application",
                    MemberType = typeof(string)
                }

Grouping is working, but I need to see text "Application", but I see "workItemViewModel.WorkItemGroupId" instead.

How to fix it?

1 Answer, 1 is accepted

Sort by
1
Svetoslav Dimitrov
Telerik team
answered on 30 Mar 2023, 12:46 PM

Hello Alexandre,

The DisplayContent affects the group indicator inside the Grid group panel, which is above the header cells. For example, this online demo renders a group panel.

There are 3 ways to customize the column label in the group header:

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Alexandre
Top achievements
Rank 1
Iron
Iron
commented on 03 Apr 2023, 12:50 PM | edited

thanks, fixed
Tags
Grid
Asked by
Alexandre
Top achievements
Rank 1
Iron
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or