When we enter any invialid date, like '02/32/0000' or '00/20/0000' and tab-out from datetime editor;
it auto validates the datetime editor and clear the datetime editor.
Is there any way to false the auto validate property of datetime editor ?
Thanks
IH
I'm not sure what you mean. You can't leave the control with an invalid date in it.
There's a property called InvalidTextBehavior which controls what happens when the text is invalid and the user tries to leave the control. Perhaps that will give you the behavior you want.
Thanks for your prompt reply.
Let me rephrase my question, we need to display an alert message whenever user tries to tab out from the Date editor with an invalid date. So, please provide some solution on this because it leaves the editor blank and we cannot display the message.
Thanks,
A new constant was added to the InvalidTextBehavior property's enumeration named 'PreserveWhileInEditMode', to address bug #13447. Unfortunately the bug was fixed during the tail end of the 2009.1 development cycle, so it won't be available until the first 2009.1 hotfix. This setting will leave ther user input intact wile an edit mode session is in progress, giving the user the opportunity to see the offending value as you (for example) display a MessageBox.
Thanks for your response.
How can I get 2009.1 hotfix, so that we can display a message for offending value ?
My Infragistics Keys and Downloads - Download Anything and Everything You Own