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.
Unfortunately, activation email could not send to your email. Please try again.

After setting ItemTemplate the row height of suggestion item gets large

Thread ID:

Created:

Updated:

Platform:

Replies:

128205 Jan 7,2017 09:32 PM Jan 18,2017 07:46 AM Xamarin.Forms 3
loading
Tags: SfAutoComplete
khasan
Asked On January 7, 2017 09:32 PM

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

Pavendhan Kumar [Syncfusion]
Replied On January 9, 2017 06:05 AM

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.


khasan
Replied On January 9, 2017 10:49 PM

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

Pavendhan Kumar [Syncfusion]
Replied On January 18, 2017 07:46 AM

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.

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.

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.

;