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

Dynamically sizing the item height in an SfTreeView

Hi,

On the SfTreeView it only appears to be possible to have a fixed 'ItemHeight'. Is it possible to have the equivalent of the SfListView's 'AutoFitMode' in the tree view.

Our application displays a number of items in the tree that have variable amounts of text - some have just one line while others have up to three lines of text. With only having the option of a fixed height we have to set our ItemHeight to accommodate the larger items with three lines of text which leaves a lot of white space around the smaller items.

It would be desirable to have the tree items size themselves according the height they need. Is there anyway to achieve this? Is it possible to write a custom renderer to achieve the same? We need to be able to do this on iOS, Android and UWP.

Thanks,

David Jones

1 Reply

DY Deivaselvan Y Syncfusion Team March 22, 2019 10:59 AM UTC

Hi David, 

Thanks for contacting Syncfusion support. 

We have checked the reported query from our side. We are glad to inform you that we have planned to include your requirement as a feature request in SfTreeview. You can now track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 


Regards, 
Deivaselvan 


Loader.
Live Chat Icon For mobile
Up arrow icon