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

How to set ListRootContainer visibility

1 Answer 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
wang
Top achievements
Rank 1
wang asked on 17 Sep 2019, 07:29 AM

Hello,I have a requirement that set the visibility property to collapsed of the ListRootContainer which in the Radtreeview control 

So, what should I do? Or some way to make the ListRootContainer hide.

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 19 Sep 2019, 10:51 AM

Hi Wang,

To set the visibility of the ListRootContainer element, you will need to edit the control template of the RadTreeViewItem control. I've prepared a small sample project to demonstrate how this can be done in the Office_Black theme when using the implicit styles theming approach with the NoXaml binaries. Do note, however, that if you're using another theme(s) you need to extract and modify the respective template(s) accordingly.

Please have a look and let me know if this delivers the desired result.

Regards,
Dilyan Traykov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
TreeView
Asked by
wang
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Share this question
or