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

Possible to collapse the space left for the expander?

1 Answer 87 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 30 Mar 2021, 03:57 AM
I am trying to use a tree view for a situation where there may or may not be children. When there are no children, the list is effectively flat, and it doesn't look right to see a big space to the left of the items where the expander would go. I tried to set the expander visual style so that the button is collapsed, but it looks like there is a minimum width on the ListRootContainer. Is there any way to do this without replacing the entire control template?

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 30 Mar 2021, 06:00 AM

Hi Steve,

The requested functionality is released with 2021 R1 SP version of RadTreeView (our latest official version). You can check the article section:

    ExpanderButtonMinWidth

With older version you need to edit the control template of the RadTreeViewItem and remove the mentioned min width of the ListRootContainer element.

Regards,
Petar Mladenov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TreeView
Asked by
Steve
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or