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

Completely remove hierarchy indicator

1 Answer 316 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rick
Top achievements
Rank 1
Veteran
Rick asked on 14 Jun 2020, 07:56 PM

I searched and saw there was a thread on not showing the indicator if there were no children, is there a way to hide the indicator in ALL cases?

I am not using the indicator to open/close the nested grids.

What I am doing currently, is I have a checkbox in certain columns if the data in that column is really more than what the column can contain, so I make a nested grid for the additional data if they want to see more information. Because the checkbox is doing the event, the indicator is not needed.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Jun 2020, 06:47 AM

Hi Rick,

Perhaps using the RowTemplate will let you define all columns and the expanded state of the rows based on the checkbox and its model value - a similar example is available in the "Master-Detail View" section about halfway through this blog post: https://www.telerik.com/blogs/why-blazor-grid-templates-will-make-you-question-everything.

Alternatively, you'd have to hide the first column of the grid with CSS, then use the Grid State to set the expanded hierarchy items, and this can become cumbersome, I think, especially when filtering and sorting come into play.

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Rick
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or