SfAutoComplete Custom Dropdown template not working

<syncfusion:SfAutoComplete Text={Binding ContactName}
                                                 DataSource={Binding Contacts}
                                                 DisplayMemberPath="ContactName">
     <syncfusion:AutoComplete.ItemTemplate>
          <DataTemplate>
               <StackLayout Orientation="Vertical">
                    <Label Text="{Binding ContactName}"
                                FontSize="14"/>
                    <Label Text="{Binding Email}">
                                FontSize="14"/>
               </StackLayout>
          </DataTemplate>                  
</syncfusion:AutoComplete.ItemTemplate>

Above is XAML, but still dropdown just shows just ContactName.... i want to show both ContactName and Email vertically

3 Replies

SK Selva Kumar  Veerakrishnan Syncfusion Team October 12, 2017 09:59 AM UTC

Hi Syed,

Thank you for contacting Syncfusion Support.

We have prepared a sample as per your requirement, in which we have displayed the ContactName and Email to be shown in the Dropdown list. Please find the sample from the link given below.

Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoTemplate_2904546138.zip  

Please let us know if you have any concern about this.

Regards,
Selva Kumar V.


AA Abdul Aala October 20, 2017 06:46 AM UTC

The sample you have sent doesn't work on UWP app. I have followed exactly what you have done in sample code.



SK Selva Kumar  Veerakrishnan Syncfusion Team October 24, 2017 01:55 PM UTC

Hi Syed,

Thanks for your response.

We are unable to reproduce the issue “ItemTemplate is not working on Xamarin.Forms.UWP platform”. We have created a sample as per your requirement on Xamarin.Forms.UWP platform, please download it from the link given below.

Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/SfAutoComplete1331461388994028.zip

Note: If the Xamarin.Forms version is different in PCL project and UWP project, then there may be a chance of invisible DropDown from SfAutocomplete control.

Please let us know if you have any concern about this.

Regards,
Selva Kumar V.

Loader.
Up arrow icon