Hi,
I would like to change the Customized String that appears when I enter an invalid Date to the XamDateTimeEditor inside a XamDataGrid.
In the Online-Documentation the String "ErrMSgEditorValNotValid" isn't available for WPF, only for WinForms. But this is exactly the Message I get in my WPF App.
How can I change this String?
I tried:
Infragistics.Windows.DataPresenter.Resources.Customizer.SetCustomizedString("ErrMSgEditorValNotValid", "Dieses Datum ist nicht gültig!");
Infragistics.Windows.Editors.Resources.Customizer.SetCustomizedString("ErrMSgEditorValNotValid", "Dieses Datum ist nicht gültig!");
Infragistics.Windows.Resources.Customizer.SetCustomizedString("ErrMSgEditorValNotValid", "Dieses Datum ist nicht gültig!");
Do you have any idea how to fix this problem?
Hello,
I cannot seem to find such a resource string for the WPF controls. Are you sure that this is the one that you want to customize or am I missing something. As you have already found in the documentation, you have to use a valid string and set that to your custom string.
The reason why you don’t see "ErrMSgEditorValNotValid" in WPF is because the message is different in WPF and the behavior of the editor validation is slightly different.
You didn’t mentioned what the message says to be sure what you are seeking for. But I am guessing that you want to customize MaskValidationErrorInvalidDate –“ An invalid date has been entered” or MaskValidationErrorInvalidDayOfMonth – ”Invalid day for the specified month of year”.
You can see all customizable string in our online help page :
http://help.infragistics.com/Help/NetAdvantage/WPF/2009.2/CLR3.5/html/WPF_Editors_Resource_Strings.html
Let me know if this helps you.
Sincerely,
Dimi
Developer Support Engineer
Infragistics, Inc.