- Home
- Forum
- Xamarin.Forms
- SfAutoComplete DataSource Problem
SfAutoComplete DataSource Problem
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" />
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
SIGN IN To post a reply.
3 Replies
SK
Selva Kumar Veerakrishnan
Syncfusion Team
January 23, 2018 08:27 AM UTC
Hi Rewaldy,
Thank you for contacting Syncfusion Support.
We could not reproduce the issue “IndexOutOFRangeException occurs in Xamarin.Forms.iOS project.” We have created a sample for your requirement. Please download the sample from the link given below.
Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/SFAutoComplete-312619070.zip
If the issue get reproduced at your end, please update us with modified sample and with replication steps to reproduce the issue.
This could help us to provide better solution on this.
Regards,
Selva Kumar V.
Thank you for contacting Syncfusion Support.
We could not reproduce the issue “IndexOutOFRangeException occurs in Xamarin.Forms.iOS project.” We have created a sample for your requirement. Please download the sample from the link given below.
Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/SFAutoComplete-312619070.zip
If the issue get reproduced at your end, please update us with modified sample and with replication steps to reproduce the issue.
This could help us to provide better solution on this.
Regards,
Selva Kumar V.
SV
Shane Vickers
March 21, 2018 02:07 PM UTC
Hi,
Was a solution found for this issue?
Im having the same issue,
Seems to be related to when the data is bound to the Control after the control is initialized,
Or the data source is changed
Regards,
Shane
Was a solution found for this issue?
Im having the same issue,
Seems to be related to when the data is bound to the Control after the control is initialized,
Or the data source is changed
Regards,
Shane
RB
Rabhia Beham Kathar Mideenar
Syncfusion Team
March 22, 2018 08:24 AM UTC
Hi Shane,
Thank you for contacting Syncfusion Support.
Unfortunately, We could not reproduce the issue “IndexOutOFRangeException occurs in Xamarin.Forms.iOS project.” We have created a sample for your requirement. Please download the sample from the link given below.
Sample link: http://www.syncfusion.com/downloads/support/forum/135554/ze/SFAutoComplete_9-1874954430
Thank you for contacting Syncfusion Support.
Unfortunately, We could not reproduce the issue “IndexOutOFRangeException occurs in Xamarin.Forms.iOS project.” We have created a sample for your requirement. Please download the sample from the link given below.
Sample link: http://www.syncfusion.com/downloads/support/forum/135554/ze/SFAutoComplete_9-1874954430
If the issue get reproduced at your end, please update us with modified sample and with replication steps to reproduce the issue. This could help us to provide better solution on this.
Regards,
Rabhia Beham K.
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
RE Rewaldy
- Jan 22, 2018 04:21 AM UTC
- Mar 22, 2018 08:24 AM UTC