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
close icon

After setting ItemTemplate the row height of suggestion item gets large

Hi there,

I am using SfAutoComplete control and it is displaying and working ok, but if I try to set some custom template for item, the item's height gets large about 90 or 110. I tried to set DropDownItemHeight but this didn't help. Here is code that I used( only part that relates to control):
<ResourceDictionary>
      <DataTemplate x:Key="itemTemplate">
        <ContentView>
          <Label Text="{Binding Name}" TextColor="Black"/>
        </ContentView>
      </DataTemplate>
    </ResourceDictionary>

<autocomplete:SfAutoComplete
          Text="{Binding OEMPart}"          
          DataSource="{Binding OemAutoCompleteSource}"
          DisplayMemberPath="Name"
          ItemTemplate="{StaticResource itemTemplate}"
          DropDownItemHeight="30"
          SuggestionMode="StartsWith"
          AutoCompleteMode="Suggest"
          Watermark="OEM Part Number"
          HeightRequest="40"
          MinimumPrefixCharacters="1"
          MaximumDropDownHeight="200"/>

Syncfusion.SfAutoComplete.XForms version is 14.4451.0.15

Thanks in advance
Khasan

3 Replies

PK Pavendhan Kumar Syncfusion Team January 9, 2017 11:05 AM UTC

Hi Khasan,

Thank you for contacting Syncfusion support.

We were able to reproduce the reported issue "DropDownItems takes more height while using ItemTemplate" at our end on Xamarin.Forms android platforms We have logged bug reports for the same. And the issue will be fixed in our upcoming 2017 Volume 1 which is expected to be rolled out by the mid of February 2017.

Regards,
Pavendhan K.



KH khasan January 10, 2017 03:49 AM UTC

Hi Pavendhan, Thank you for information, this is good news.

Is there any way to workaround this, may be in renderer, just let me know the direction I can make others myself

Thanks in advance
Khasan


PK Pavendhan Kumar Syncfusion Team January 18, 2017 12:46 PM UTC

Hi Khasan,

We regret to inform that there is no workaround available for this as it is the issue in our source and it will be fixed in Volume 1 which is expected to be rolled out by the mid of February 2017.

Regards,
Pavendhan K.

Loader.
Live Chat Icon For mobile
Up arrow icon