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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamically sizing the item height in an SfTreeView

Thread ID:

Created:

Updated:

Platform:

Replies:

143478 Mar 21,2019 02:55 PM UTC Mar 22,2019 10:59 AM UTC Xamarin.Forms 1
loading
Tags: SfTreeView
David Jones
Asked On March 21, 2019 02:55 PM UTC

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

Deivaselvan Y [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;