BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
When i edit an Integer Property like "Integer1" after commitig (clicking outside of the textbox) i get a "InvalidCastException"
OS: MacOs 13.2.1 (22D68)
Specified cast is not valid.
at System.Linq.Expressions.Interpreter.CastInstruction.CastInstructionT`1[[System.Int32, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].Run(InterpretedFrame frame)
at System.Linq.Expressions.Interpreter.Interpreter.Run(InterpretedFrame frame)
at System.Linq.Expressions.Interpreter.LightLambda.RunVoid(Object[] arguments)
at System.Dynamic.Utils.DelegateHelpers.ActionThunk2[Object,Object[]](Func`2 handler, Object t1, Object[] t2)
at Syncfusion.Maui.DataForm.MethodInvoker.<>c__DisplayClass4_0.<CreateInvokeDelegate>b__0(Object instance, Object[] parameters)
at Syncfusion.Maui.DataForm.MethodInvoker.Invoke(Object instance, Object[] parameters)
at Syncfusion.Maui.DataForm.PropertyAccessor.SetValue(Object o, Object value)
at Syncfusion.Maui.DataForm.PropertyAccessor.Syncfusion.Maui.DataForm.IPropertyAccessor.SetValue(Object instance, Object value)
at Syncfusion.Maui.DataForm.PropertyInfoHelper.SetValue(IDataFormInfo dataForm, Object value, DataFormItem dataFormItem)
at Syncfusion.Maui.DataForm.DataFormItem.SetValue(Object value)
at Syncfusion.Maui.DataForm.DataFormTextEditor.OnCommitValue(DataFormItem dataFormItem, Entry view)
at Syncfusion.Maui.DataForm.DataFormTextEditor.OnViewUnFocused(Object sender, FocusEventArgs e)
at Microsoft.Maui.Controls.VisualElement.OnUnfocus()
at Microsoft.Maui.Controls.VisualElement.OnIsFocusedPropertyChanged(BindableObject bindable, Object oldvalue, Object newvalue)
at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent)
at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes)
at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindablePropertyKey propertyKey, Object value, SetValueFlags attributes)
at Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IView.set_IsFocused(Boolean value)
at Microsoft.Maui.Handlers.EntryHandler.OnEditingEnded(Object sender, EventArgs e)
at UIKit.UIControlEventProxy.Activated()
Hi Andreas,
As of now, the maui DataForm does not have support for numeric editor. We have planned to include the numeric editor in our upcoming 2023 volume 2 release which is expected to roll out in the month of June, 2023. We suggest you use the custom editor to achieve your requirement. Please refer to the UG documentation about ‘How to use custom editor’ for your reference.
Please let us know if you have any concerns.
Regards,
SaiGanesh Sakthivel