Clear button don't work well on iOS

I have issue with clear button on Xamarin iOS, when I select value for suggestion box and I click on cancel button nothing happen, if I enter edit the field and Tapp on clear button the value is cleared, but when I try again nothing happen, the clear button don't work anymore.

In Xamarin Android everything works like a charm....

Xamarin forms version 4.5.0.530
Syncfusion version 17.4.0.39

Same version in all Xamarin project.

7 Replies

SP Sakthivel Palaniyappan Syncfusion Team April 29, 2020 03:08 PM UTC

Hi Mik,

Greetings from Syncfusion.

We have checked the reported issue  “Clear button don't work well on iOS”,  but we are unable to reproduce the reported issue at our end. We have created sample and recorded video for this.


Please find the video from below link.

Video:
 https://www.syncfusion.com/downloads/support/directtrac/general/ze/AutoCompleteVideo.mov-1452558834.zip

Please find the sample from below link.

Sample:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/AU7175~1-875276149.zip

Could you please ensure the reported issue resolved or not with our latest nuget. If the issue still persists,  could you please modify the above sample with reported issue and revert us. It will help us to provide the  better solution at earliest.

Regards,
Sakthivel P.
 



MI Mik May 13, 2020 04:25 PM UTC

This is my code and don't work.

<StackLayout>
                <Grid>
                    
                    <border:SfBorder
                        
                        BorderColor="#D2D2D2"
                        BorderWidth="1"
                        CornerRadius="4">
                        <!--  Autocomlpete  -->
                        <autocomplete:SfAutoComplete
                            x:Name="tSource"
                            DataSource="{Binding TravelSource}"
                            DisplayMemberPath="RealPlaceDisplayLabel"
                            DropDownItemHeight="40"
                            HeightRequest="40"
                            ItemTemplate="{StaticResource PlaceAutocomplete}"
                            MinimumPrefixCharacters="4"
                            MultiSelectMode="None"
                            ShowBorder="false"
                            SuggestionBoxPlacement="Bottom"
                            SuggestionMode="Custom"
                            Text="{Binding SourcePlaceText}">
                            <autocomplete:SfAutoComplete.Behaviors>
                                <b:EventToCommandBehavior
                                    Command="{Binding TravelSourceChanging}"
                                    CommandParameter="{Binding Source={x:Reference tSource}, Path=Text}"
                                    EventName="ValueChanged" />
                                <b:EventToCommandBehavior
                                    Command="{Binding TravelSourceSelectedItem}"
                                    CommandParameter="{Binding Source={x:Reference tSource}, Path=SelectedIndex}"
                                    EventName="SelectionChanged" />

                            </autocomplete:SfAutoComplete.Behaviors>
                        </autocomplete:SfAutoComplete>
         </border:SfBorder>
   </Grid>
</StackLayout>
             
                    
           


SP Sakthivel Palaniyappan Syncfusion Team May 15, 2020 03:45 AM UTC

Hi Mik,

Thanks for the update.

Currently we are validating the reported issue and we will update the details on May 18,2020.

Regards,
Sakthivel P.
 



MI Mik May 19, 2020 09:09 AM UTC

Any news?


RS Ramya Soundar Rajan Syncfusion Team May 19, 2020 10:26 AM UTC

Hi Mik, 
 
Sorry for the inconvenience.  
 
We have checked the issue with the code snippet provided.But  we are unable to reproduce the issue from our side. Please find the tested sample from below link. 
 

Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced, please revert us by modifying the sample based on your application along with replication procedure or provide the sample. This will be helpful for us to investigate further and provide you a better solution at the earliest.
 
 
Regards, 
Ramya S 



MI Mik May 19, 2020 11:01 AM UTC

Hi, your sample don't work.

The autocomplete not suggest anything....

see video attached.

Attachment: issue.mp4_60279661.zip


RS Ramya Soundar Rajan Syncfusion Team May 19, 2020 01:19 PM UTC

Hi Mik, 
 
We would like to inform that you have used SuggestionMode as Custom in provided code snippet.We have to provide the below code snippet to show Suggestion when setting SuggestionMode as Custom.  
Code Snippet: 
 
autoComplete.Filter = ContainingSpaceFilter;

 public bool ContainingSpaceFilter(string search, object item) 
        { 
            string text = item.ToString().ToLower(); 
            if (item != null) 
            { 
                if (!search.Contains(".")) 
                { 
                    search = search.Insert(0, "."); 
                } 
 
                if (text.StartsWith(search.ToLower())) 
                { 
                    return true; 
                } 
            } 
 
            return false; 
        } 
 
We have modified the sample based on this and please find the sample from below link 
 
 
Please refer the below link for this 
 
 
Please check with the above UG link and use the SuggestionMode as per your requirement. 
 
If the issue still persists, please revert us by modifying the above sample with the replication steps since we are unaware of the exact application scenario which will be helpful for us to analyze and provide the solution at the earliest. 
 
Regards, 
Ramya S 


Loader.
Up arrow icon