Property doesn't get updated on click of the "Clear" button

Hi,

I'm using a sfMaskedEdit control with the clear button visible. However when I click the clear button, the property binded to the "Value" property doesn't get updated / cleared.

XAML:
                    <maskedEdit:SfMaskedEdit Grid.Row="1" Grid.ColumnSpan="3"
                                             ValidationMode="KeyPress"
                        Value="{Binding API, Mode=TwoWay}" 
                        Style="{DynamicResource BorderlessMaskedEditDefaultStyle}"
                        Watermark="569C08..."
                        Margin="16,2,16,4"
                        />

CS:
private string _api = "";
        public string API
        {
            get => _api;
            set
            {
                if (_api == value) return;
                _api = value;
                OnPropertyChanged();
            }
        }

It works fine, when I type in some text for the API. Is there a way to bind a command to "OnButtonPressed"? Or to set a default value when this button is clicked?

Thank you for helping out on that matter!


4 Replies

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

Hi Andreas,  
 
We can reproduce the reported issue and we confirmed “Value property not working properly in iOS” as an issue from our side. The fix for the reported issue will be included in our weekly NuGet which is expected to be rolled out on June 2, 2020. We appreciate your patience until then.  
  
You can now track the status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.   
 
 
Note: The provided feedback link is private, and you need to login to view this feedback.   
 
Regards, 
Ramya S 



AR Andreas Reitberger May 22, 2020 01:51 PM UTC

Awesome, thank you very much for this quick help!


VR Vignesh Ramesh Syncfusion Team May 25, 2020 04:17 PM UTC

Hi Andreas, 

Thanks for your update. 

As we told in our last update, this fix will be included in our weekly NuGet which is expected to be rolled out on June 2, 2020. We appreciate your patience until then. 

Regards, 
Vignesh. 



SP Sakthivel Palaniyappan Syncfusion Team June 2, 2020 02:14 PM UTC

Hi Andreas,

We are glad to announce that our weekly NuGet was rolled out today and fix for the reported issue was included in the weekly NuGet.

NuGet Version: 18.1.0.55

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sakthivel P.


Loader.
Up arrow icon