This is a migrated thread and some comments may be shown as answers.

Show multiple properties in GroupHeaderTemplate?

3 Answers 79 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Allan
Top achievements
Rank 1
Veteran
Allan asked on 08 Jan 2021, 07:28 AM

Hello,

 

In my scheduler I want to customize the GroupHeaderTeamplate, so I can make it something like (look at the marked area on the attached image).
It includes: room numer, photo of the attendee and a name.

I am grouping my "Rooms" resource so they are being shown in a sorted order. But how do I add the other properties to the header?

 

.Group(group => group.Resources("Rooms").Orientation(SchedulerGroupOrientation.Horizontal))
       .GroupHeaderTemplate("#= text #")
       .Resources(resource =>
       {
           resource.Add(m => m.RoomID)
               .Title("Room")
               .Name("Rooms")
               .DataTextField("RoomName")
               .DataValueField("RoomID")
               .BindTo(Model.ResidenceCalendarResourceModelList);
       })

 

 

3 Answers, 1 is accepted

Sort by
0
Neli
Telerik team
answered on 11 Jan 2021, 04:33 PM

Hi Allan,

I am afraid that using custom fields in Scheduler groupHeaderTemplate is not supported. The fields that could be used in the groupedHeaderTemplate are limited only to the following options: text, color, value field, title, and name.

Let me know in case you have additional questions related to the issue.

Regards,
Neli
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/.

0
Allan
Top achievements
Rank 1
Veteran
answered on 12 Jan 2021, 07:05 AM

Hi Neli,

Do I have any other options to customize the header?

Allan

0
Neli
Telerik team
answered on 13 Jan 2021, 03:59 PM

Hi Allan,

I am afraid that I could not suggest a workaround for the limitation mentioned in my previous reply. If you think that using custom fields in the groupHeaderTemplate would be a valuable addition to the Scheduler widget and you would like it to be implemented in a future release, you can submit a new feature request in the Feedback portal.

Regards,
Neli
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/.

Tags
Scheduler
Asked by
Allan
Top achievements
Rank 1
Veteran
Answers by
Neli
Telerik team
Allan
Top achievements
Rank 1
Veteran
Share this question
or