Hi,
I have a question about the UltraValidator. On a form i have a UltraNumericEditor control which is read only. The value is assigned programatically. When the value is not equal to 0 i want an image to be shown.
The ValidationTrigger is set to OnPropertValueChanged. However, when the value is changing the image is not shown. It only seems to work when i put the validate command in the ValueChanged event of the UltraNumericControl.
It does work when the user actually types something in the UltraNumericEditor control but apparently not when the value changes programatically.
Is this by design?
Kind regards,
Jacob Iedema
No more questions on this matter, topic can be closed.
Thx for your answer.
Jacob
Hello,
Did you have nay further questions on this metter?
Please let me know if you have any further questions.
The behavior happens because all validation triggers only apply when the control being validated has the input focus, whereas the Validate method can be called regardless of whether the control has focus.
Let me know if you have any further questions.
Yes i did that as i already stated in the 1st post and it wasn't really the question.
Question is why it's not working when setting the properties. It's not a big deal but in my view it just should work when setting the properties instead of doing it in code.
UltraValidator could be call programmatically with ultraValidator1.Validate(this.Control);. For more information please look at the following link :
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/WinValidator_Validate_a_Single_Control.html
let me know if you have any further questions.