Column header for hierarchical data. Also how not to show the plus when no data

1 Answer 67 Views
Grid
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Martin Herløv asked on 14 Feb 2023, 02:01 PM

How can I set a column header for my hierarchical data?

Also when there is no hierarchical data the “+” and the template should not be rendered.

Hope at least for some help on setting the header


 

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 17 Feb 2023, 09:18 AM

Hello Martin,

To each question in its distinct turn:

How can I set a column header for my hierarchical data?

My best guess is that you want to add a column header in the main Grid for your details template. If that is the case, you can maybe utilize the MultiColumnHeaders. If this is not what you require, expand a bit the use-case with some details.

Also when there is no hierarchical data the “+” and the template should not be rendered.

You can see the Conditional Grid ToolBar and DetailTemplate knowledge-based article to see more information and snippets on this topic. 

Regards,
Svetoslav Dimitrov
Progress Telerik

Learn about the important changes coming in UI for Blazor 4.0 in January 2023!
Tags
Grid
Asked by
Martin Herløv
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or