Bold BI®Unlock stunning dashboards with Bold BI®: 35+ widgets, 150+ data sources, AI agent & more. Try it for free!
Using SfCalendar and SfNumericTextBox version 19.2.0.62
I have a view in Xamarin Forms 5.0 that has an SfNumericTextBox bound to a nullable int and has AllowNulls = True
We also have an SfCalendar control bound to a DateTime field in the same ViewModel
Hi Pat,
We have reviewed your query and prepared a sample based on your replication steps. In the sample, we have used the SfNumericTextBox and SfCalendar controls. We have bound the Value property of the SfNumericTextBox to a Nullable int property in the ViewModel, and the SelectedDate property of the SfCalendar to a DateTime property in the ViewModel.
When changing the date in the calendar, we update the year value in the NumericTextBox. By setting the ValueChangeMode to "OnKeyFocus" in NumericTextBox, the ViewModel property of the NumericTextBox gets updated when editing the NumericTextBox.
Could you please share, How would you like to display the inputs in the NumericTextBox? Are you displaying only the year or the full date?
Kindly find the sample attached. Please let us know if you need any additional details.
Regards,
Ahamed Ali Nishad.
Thank you. The update of ValueChangeMode workd perfectly.
Hi Pat Long,
You're welcome. We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.
Regards,
Preethi R