GridCellsSettings.groupHeader vs. GridCellsSettings.group.groupHeader

2 Answers 53 Views
Grid
Jie
Top achievements
Rank 3
Iron
Iron
Iron
Jie asked on 05 Oct 2023, 09:46 PM

Hi,

 

What is the difference between GridCellsSettings.groupHeader and GridCellsSettings.group.groupHeader? Same for GridCellsSettings.groupFooter.

 

Thanks,

Jie

2 Answers, 1 is accepted

Sort by
0
Accepted
Wissam
Telerik team
answered on 11 Oct 2023, 01:24 PM

Hi, Jie,

The `cells.groupHeader` property can be used along with the `cells.group.groupHeader` property in order to style separate parts of the group header.

For example, in the below demo, the first part of the group header is green while the other part is lightgreen. `cells.group.groupHeader` is set to  `MyHeaderCustomCell1` that renders a green background color, while `cells.groupHeader` is set to `MyHeaderCustomCell` that renders a lightgreen background color:

I hope this helps.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Jie
Top achievements
Rank 3
Iron
Iron
Iron
commented on 11 Oct 2023, 01:29 PM

That makes sense, thanks!
Wissam
Telerik team
commented on 11 Oct 2023, 02:01 PM

You are welcome, Jie.
0
Wissam
Telerik team
answered on 09 Oct 2023, 04:41 PM

Hello, Jie,

I believe that it is enough to have one property for customising the group header. Therefore, I will need to discuss this with the developer responsible for the Grid and I will get back to you when I have more information on this matter.

Currently, I would suggest using the `GridCellsSettings.group.groupHeader` property as it shows correct functionality for the group header customisation.

For more information on using the `group.groupHeader` prop, you can check the following two examples:

Please let me know if you have any further questions on this matter.

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Grid
Asked by
Jie
Top achievements
Rank 3
Iron
Iron
Iron
Answers by
Wissam
Telerik team
Share this question
or