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

Auto height doesn't working when I using sfChips in items

I have sfListView where I add shChipsGroup in items.
 <xForms:SfListView ItemsSource="{Binding Items}" AutoFitMode="Height">
                        <Grid RowSpacing="0">
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="1" />
                            <Grid RowSpacing="0" Padding="8,0,8,10">
                                    <RowDefinition Height="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="10" />
                                <StackLayout Orientation="Vertical" VerticalOptions="StartGrid.Row="0Grid.Column="0">
Grid.Row="1Text="{Binding Name}"/>
                                    <Label Grid.Row="1Text="{Binding CategoryName}" />
                                    <Label Grid.Row="1Text="{Binding TypeName}"/> 
                                    <Label Grid.Row="1Text="{Binding Description}"/>
                                    <Label Grid.Row="1Text="{Binding Price}"/>
                                <StackLayout Orientation="VerticalVerticalOptions="Start  Grid.Row="1Grid.ColumnSpan="2"> 
                                    <buttons:SfChipGroup Grid.Row="1"
                                                     ItemsSource="{Binding Ingredients}"
                                        <FlexLayout HorizontalOptions="Start"
                            <BoxView Grid.Row="2"
                                     BackgroundColor="#CECECE" />

When in FlexLayout I set Wrap="Wrap" my each row height has calculated is not correct. 

But when I change Wrap to "NoWrap" - the height is correct:

Can you help me?

3 Replies

CE Cepega February 5, 2019 11:57 AM UTC

The same problem in iOS and Android devices.
I tried add 
Loaded="listView_Loaded" to ListView where I called listView.RefreshListViewItem(), but it doesn't help me.

GP Gnana Priya Namasivayam Syncfusion Team February 5, 2019 04:32 PM UTC

Hi Sergey, 
Thanks for using Syncfusion product. 
We have checked reported the query from our side and could able to reproduce the issue. We are currently validating the reported query and will update further details on February 5, 2019. We will appreciate your patience until then. 
Gnana Priya N 

GP Gnana Priya Namasivayam Syncfusion Team February 6, 2019 12:15 PM UTC

Hi Sergey, 
We have checked the reported query from our side. We would like to know that default ItemHeight value of SfChip is double.NAN. So, we need to use ItemHeight for the SfChipGroup. So that, it get adjusted correctly to the view inside the ListView ItemTemplate. We have attached the modified sample for your reference, please find the sample from following. 
   <buttons:SfChipGroup Grid.Row="1" ItemHeight="40" ItemsSource="{Binding Employees}" 
Gnana Priya N 

Live Chat Icon For mobile
Up arrow icon