Hi,
I'm using a XamDateTimeEditor and I specified a ValueConstraint in the xaml. I also specified InvalidValueBehavior="DisplayErrorMessage".
I dont want to show the default message. I want to control the message depending on the value specified. If it's over or lower... In the EditModeValidationError event, I only have acces to the original value. I dont see the new value. I tried to set the message to e.ErrorMessage = "";
and use the CellUpdated event to check the value, but its not called until the ValueConstraint is respected.
How can I access the old and new valeur of the cell to control the message displayed? Or is there a way to set the InvalidValueBehavior to none?
With regards to the custom message - the string isn't hard coded so in theory you could localize that string within your app using our ResourceCustomizer. The strings resource names are values like LMSG_ValueConstraint_MaxExclusive.
Thank you, that ansers my question perfectly.
Note that my application is supported in French and English so your custom message wont fit. And we also use a custom message window with our icons and stuff. The 9.2 release wont help resolve my issue.
Thanks anyway.
girardkarine said:I dont want to show the default message. I want to control the message depending on the value specified. If it's over or lower... In the EditModeValidationError event, I only have acces to the original value. I dont see the new value.
girardkarine said:Or is there a way to set the InvalidValueBehavior to none?