remove indentation in Grid - Hierarchy

1 Answer 21 Views
Grid
Hans
Top achievements
Rank 2
Iron
Iron
Hans asked on 08 Mar 2024, 02:00 PM
How can I change the indentation of the child items in hierarchical grids. I want the children to start at the same beginning as the parent element

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Mar 2024, 03:17 PM

Hi Hans,

There are two ways to make the detail table align with the master table:

  • Use a TreeList
  • Hide the Grid hierarchy column, but this is basically a more complex way to achieve a TreeList-like look. You will need custom CSS to hide the hierarchy column, column templates to add custom expand/collapse buttons and custom C# to manage the Grid hierarchy. At this point I don't see a reason for all this manual work.

If you simply need to align the columns and prefer to use a Grid instead of a TreeList, then check this KB article that may serve you well:

Align Grid column headers when using hierarchy

Regards,
Dimo
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Tags
Grid
Asked by
Hans
Top achievements
Rank 2
Iron
Iron
Answers by
Dimo
Telerik team
Share this question
or