Tree data does not indent
Describe the bug Tree data does not indent when dropped down
To Reproduce
- Create tree data with multiple dropdowns
- Expand each row
Expected behavior The title for each dropdown should be indented to show that it is a child of the parent - just like how the arrows indent. The behavior is also correct on grouped tables
Screenshots

It should be a prop because sometimes the current behavior is desired
Any update about this issue, please?
I'm also looking for a solution!
PS: material-table is awesome 😃
There's a pull request for this. Any feedback?
Any solution to this yet?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.
not stale!
not stale. I would greatly appreciate if the Pull Request could be merged in as I would love to continue using material-table and do prefer it over lower level table libraries..
This could be accomplished with a simple custom column render function. Just render a div and pass in a left padding according to the depth of the tree the row is at
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.
no stale
Has there been any solutions for this?
Here's my solution:
columns={[
{
title: 'FooBar',
type: 'string',
field: 'fooBar',
cellStyle: (rowDataArray, rowData) => {
const paddingLeft = 30 * rowData.level;
return ({ paddingLeft: paddingLeft} as React.CSSProperties);
}
},
Note that you have to compute the level property (depth) and add it to data.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.
not stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.