We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

UpDown Editor validation on lost focus

Hi,

I'm using UpDown and I need configure the validation when a new value is entered.

By default, binded property is immediately updated when a key is pressed.
But I need something like LostFocus validation for the current value.

Furthermore, validation must be active on up/down buttons.

Is that possible?


Regards,
Marijan

3 Replies

AX Antony Xavier D Syncfusion Team October 9, 2012 07:29 AM UTC

Hi Marijan,

 

We have prepared a sample based on your requirement. In that we have validated the input value 20 in the lost focus and also in value changed by the repeat button of updown.

Please find the attached sample below.

 

Regards,

Antony.



UpDownValidation_6edc3783.zip


DA Daniel replied to Antony Xavier D March 2, 2023 04:59 PM UTC

Hello, 

I have the same doubt as the author of the post, but can't download the sample attached.



BA BagavathiPerumal Apranandham Syncfusion Team March 9, 2023 09:16 AM UTC

Hi Daniel,



We suggest you to use the “MinValidation” and “MaxValidation” properties to validate the value of the UpDown control on LostFocus. Please refer to the attached sample and documentation for your reference.

Documentation link: Restriction in WPF NumericUpdown control | Syncfusion



Regards,
Bagavathi Perumal A


Attachment: UpDownMinMaxValidation_ee5710d7.zip

Loader.
Live Chat Icon For mobile
Up arrow icon