Hi All,
I'm using SfAutoComplete in a Xamarin Forms Project.
The following error occurs on iOS:
System.IndexOutOfRangeException: Index has to be >= lower bound and <= upper bound of the array.
These error only occurs on iOS when binding data source.
Here is code below:
Xaml:
<SfAutoComplete
x:Name="AutoSearchBar"
HeightRequest="40"
HorizontalOptions="FillAndExpand"
SuggestionMode="Contains"
AutoCompleteMode="SuggestAppend"
MaximumDropDownHeight="150"
Watermark="Search Name"
BackgroundColor="White"
MinimumPrefixCharacters="3"
TextSize="14" />
Code-behind:
AutoSearchBar.SetBinding(SfAutoComplete.DataSourceProperty, "TeamDataSource");
Thanks,
Rewaldy