I''m using the DateTimeCell cell type in order to edit time values in the grid.
My problem is: I don''t want the control to check the validity of the date before the user validates the cell.
I am using the following date format: DD/MM/YY
If the current date is 01/02/05, the user wants to enter 30/03/05. When he starts typing ''3'' then the control puts ''03'' for the days and switches to
the month part of the control.
If it''s not possible to do that, is there another control I can use instead?
Thanks in advance,
ADAdministrator Syncfusion Team June 10, 2005 06:29 AM
If you have our Tools library, I think you can use our DateTimePickerAdv in a cell to get this behavior. Here is a sample.
That control lets you autoforward the keys which I think is what you are requesting. This above sample does not have these propertues set, but you can modify the code to set them by adding the constructor to the MyDateTimePicker class.
I am using the tools library and your DatePickerCell.
It works fine except that I really need this feature : be able to type 31 in the part of the control that represents the days even if the selected month is february or a month with 30 days.
My users want the following custom date format: "dd/MM/yy" so they type the value for the days before the one for the month.
So in my previous example,
if the current date is 01/02/05, the user wants to enter 30/03/05. When he starts typing ''''3'''' then the control puts ''''03'''' for the days and switches to the month part of the control (as autoforwarding is set to true).
It is really paintful for the user because he has to change the month before changing the days :(
ADAdministrator Syncfusion Team June 10, 2005 10:42 AM
We will make it a feature request to handle this problem somehow (allow you to turn off validation until you leave the control maybe, or raise an event that will allow you to override the validation).
Until we have a release with this implemented, the only way I would know to do this is to copy our source code for the DataTimePickerAdv into your own class, and tweak it to ignore validation when needed.