We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Dimensions and animation?

- I wonder is there a way to prevent changing the size of TreeView, and how ?
as well.
- How can I turn off the animation of expanding/collapsing (and all other animations (if there is more)) ?

3 Replies

MK Muthukrishnan Kandasamy Syncfusion Team November 26, 2019 02:22 PM UTC

Hi Yordan, 
Thanks for contacting Syncfusion support. 
Yes, if you set width for TreeView component then it will not be changed. You can use HtmlAttributes property to set the width for Treeview. To turn off the TreeView node expand/collapse animation settings we have property TreeViewNodeAnimationSettings. We have prepared sample for your convenience. kindly refer to the below link for the sample. 
Please let us know if you have any concerns. 
Muthukrishnan K 

YO Yordan November 27, 2019 07:32 AM UTC

The animation indeed dissipated, with HtmlAttributes set to

 "Dictionary<string, object> htmlAttribute = new Dictionary<string, object>()
         { "style", "width: 300px; height:500px; overflow-y:scroll; overflow-x:hidden;" }

did the trick.

Thank You very much !

MK Muthukrishnan Kandasamy Syncfusion Team November 27, 2019 12:45 PM UTC

Hi Yordan, 
We are glad to know that given solution works. Please let us know if you need any further assistance. 
Muthukrishnan K 

Live Chat Icon For mobile
Up arrow icon