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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dynamic / Auto DropDownItemHeight ?

Thread ID:

Created:

Updated:

Platform:

Replies:

150834 Jan 21,2020 02:47 PM UTC Jan 22,2020 01:50 PM UTC Xamarin.Forms 1
loading
Tags: SfComboBox
Tomasz
Asked On January 21, 2020 02:47 PM UTC

Hello!

I've been wondering, if there is a 'dynamic' variant of the DropDownItemHeight method on SfComboBox ?
I've been trying to show a custom view for a SfComboBox, using Grid and labels in grid's rows and columns, like this:

<Grid Padding="10,5,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="1"/>
</Grid.RowDefinitions>
<Label Grid.Column="0" Text="{Binding Name}"/>
<Label Grid.Column="1" Text="{Binding}"/>
<Label Grid.Column="2" Text="{Binding}"/>
<Label Grid.Column="3" Text="{Binding}"/>
<Label Grid.Column="4" Text="{Binding}"/>
<BoxView Grid.Row="1" Grid.ColumnSpan="5" Color="LightGray"/>
</Grid>

I removed the irrelevant binding names, except the one causing problem. When the value bound to a Label's Text is long enough, so the Label breaks the line, the row's height doesn't change, which leads to the text represented by the label to be cut off, dependant on the current DropDownItemHeight setting.

Currently, the solution I worked out is to set the value of DropDownItemHeight manually, but then again, each and every row has that height, instead of automatically shrink it to the contents of that row.

Hemalatha Marikumar [Syncfusion]
Replied On January 22, 2020 01:50 PM UTC

Hi Tomasz, 
 
Greetings from Syncfusion. 
 
We have analyzed the possibilities of achieving your requirement of "Auto height support for DropDownItem in SfComboBox". We have logged this as a feature request, and you can track the status of this feature implement through below link 
  
 
Please cast your vote to make it count. We will prioritize the features every release based on the demands and we do not have an immediate plan to implement this feature since we committed with already planned work. So, this feature will be available in any of our upcoming releases.     
   
If you have any more specifications/suggestions to the feature request, you can add it as a comment in the portal.  
 
Regards, 
Hemalatha M. 


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

Live Chat Icon For mobile
Live Chat Icon