Completed
Last Updated: 22 Apr 2019 11:00 by ADMIN
ADMIN
Lance | Team Lead - US DevTools Support
Created on: 17 Jul 2018 18:37
Category: AutoComplete
Type: Bug Report
0
AutoComplete: [iOS] Text not updating upon Clear button click
When using TwoWay binding for AutoComplete on iOS, the Text is cleared using the Clear button, the Text property is not updated.

Also, as a confirmation, the Xamarin.Forms PropertyChanged event is also not fired for the RadAutoComplete.Text Property 

Test 1 : Use the following repro for the Binding test:

<telerikInput:RadAutoComplete Text="{Binding SelectedInsurer, Mode=TwoWay}" />

public string SelectedInsurer
{
    get => selectedInsurer;
    set
    {
        SetProperty(ref selectedInsurer, value);
        // This is not hit on iOS when the Text is cleared using the "X" button
    }
}


Test 2 : Use this code for the PropertyChanged test:

AutoComplete.PropertyChanged += AutoComplete_PropertyChanged;

// Not executed on iOS when the Clear button is used.
private void AutoComplete_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
    if (e.PropertyName == "Text")
    {
        Debugger.Break();
    }
}
1 comment
ADMIN
Nasko
Posted on: 22 Apr 2019 11:00
Hello,

The status of the item is updated to "Completed" as this issue is not reproducible in RadAutoCompleteView. Please consider using RadAutoCompleteView as it is a replacement of RadAutoComplete and have in mind that AutoComplete will be removed from the suite soon. 
 
You can read about the differences between both components and how to migrate to the new RadAutoCompleteView in the kb article here: Replace AutoComplete with AutoCompleteView.
 
If you have any difficulties regarding this, please open a support ticket with more details on your scenario.
   
Regards,
Naskohm