TreeView indent

1 Answer 69 Views
TreeView
Anthony
Top achievements
Rank 1
Iron
Anthony asked on 08 Apr 2024, 03:54 PM
Is it possible to increase the indent on child folder items?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 11 Apr 2024, 06:45 AM

Hello Anthony,

Yes, you can use custom CSS to override our theme and increase the TreeView item indentation:

<TelerikTreeView Class="more-indent" />

<style>
    .more-indent .k-treeview-item .k-treeview-item {
        margin-left: 24px;
    }
</style>

If you remove the custom CSS class, the CSS rule will target all TreeViews.

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
TreeView
Asked by
Anthony
Top achievements
Rank 1
Iron
Answers by
Dimo
Telerik team
Share this question
or