telerik xamarin autocomplete

1 Answer 129 Views
AutoCompleteTextView - Xamarin.Android
Coopbase
Top achievements
Rank 2
Iron
Iron
Coopbase asked on 15 Dec 2021, 07:09 AM

hi 

how can i bind my autocompleview with my listview. 

 

 <telerikInput:RadAutoCompleteView x:Name="autoCompleteView"
                                                  ItemsSource="{Binding SearchedUser}"
                                                  Style="{StaticResource TelerikAutoCompleteView}"
                                                  TextSearchPath="First_name"
                                                  HorizontalOptions="FillAndExpand"
                                                  Watermark="Show Suggestions on focus">
                </telerikInput:RadAutoCompleteView>

 

 

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 15 Dec 2021, 01:52 PM

Hello Coopbase,

The AutoCompleteView has a property "FilteredItems". You can use this property to bind to another UI control's ItemsSource.

 

If you are showing the filtered results in another UI component, you will want to suppress the AutoCompleteView's built-in ListView. To do this you need to set the ShowSuggestionsView property to False.

 

If you are not familiar with binding properties of one UI component to another UI component, you just use an x:Reference source. For example

<input:RadAutoCompleteView x:Name="MyAutoCompleteView" .../>

<ListView ItemsSource="{Binding FilteredItems, Source={x:Reference MyAutoCompleteView}}">

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AutoCompleteTextView - Xamarin.Android
Asked by
Coopbase
Top achievements
Rank 2
Iron
Iron
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or