public class EmptyStringToNullConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { return value; } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { if (value != null && (string.IsNullOrWhiteSpace(value.ToString()) || value.ToString().Equals("0.0"))) { return null; } else { return value; } } } |
Hi Dan Dumitrascu,
Glad that the issue has been resolved. Please get back to us if any further assistance on this.
Regards,
Selva Kumar V.
Hi,
I am having the same trouble with the SfComboBox.
In the iOS app, the problem is that the clear button is not triggering the SelectionChanged event.
Situation: if I get a value on SelectedItem from the view model (and not from the drop down list, for example on an edit view with forms already with values), when I tap the clear button the event is not triggered.
Also in an edit view, where the forms is already filled, the SelectionChanged should be triggered when the view gets SelectedItem property from the view model. This only happens on Android.
In the Android app, the SelectionChanged event works perfectly, but when I change the value of any other SfComboBox IsEnabled to false, and then I call again the SelectionChanged and set this IsEnabled to true, on Android the SfComboBox never becomes enabled again, on iOS it does.
Is it there any solution please? I just updated the latest version of Syncfusion 18.1.0.43.
Thanks for your attention!
Best regards,
Alexandre Vaz.