Hi,
I'm using a XamDataGrid. One of its columns is a bound integer field. Whenever I edit the value and type a non-integer value (e.g. 'test') there would be a validation error stating that "Value 'test' could not be converted." I would like to translate this message into a different language when the user changes culture. I believe I have to use an Infragistics resource customizer to accomplish this, but I cannot find this specific resource. I have been trying to find it via the following link:
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/WPF_Customize_Assembly_Resource_Strings.html
I have been searching for "Value '{0}' could not be converted." but cannot seem to find it in any of the links on that page. Where is it located?
I'm using netAdvantage v11.2
Regards, Stefan
Hi Stefan,
See my attached sample. If you run it, and change one of the values to 'XX' for example, you will see the tooltip.
Hello Stefan,
Could you please send me an isolated sample where the message is available, because I cannot be completely sure what is your scenario? I tried to enter a string into a n integer Field and I get the "Value '{0}' is not a valid number. Please enter a valid number." message.
Looking forward for your reply.
This is not the right translation string. By default, LMSG_EnteredNumberInvalid returns [Value '{0}' is not a valid number. Please enter a valid number.]
I also tried the string LMSG_ValueConstraint_CannotConvert but this is also not the correct one; this one returns [Value could not be converted to {0}]
I'm looking for a value that returns [Value '{0}' could not be converted.] but I cannot find it. I don't think it is in Infragistics.Windows.Editors.Resources
Thank you for your post. I have been looking into and I can suggest you use the approach from the link you shared with the following value:
LMSG_EnteredNumberInvalid
Like this:
Infragistics.Windows.Editors.Resources.Customizer.SetCustomizedString("LMSG_EnteredNumberInvalid", "My Value {0} is not valid");
Please let me know if this helps you or you need further assistance on this matter.