I have a DateTimeEditor being used as the editor on a grid cell. The editor is masked with '{LOC} hh:mm tt' to restrict entries to time values only.
The grid is a detail grid and the master record has a date and time span associated with it. Detail records must have a start and stop time within the master record's span.
I am initializing the date (and time) when a row is added with the latest date time entered to date. So the first new row gets the start of the master records span, and subsequent records get the latest time already entered in the detail grid. This part is all fine.
The user can edit the values in the start and end time cells, though, so I need to do some validation to keep them in the range. I've tried setting the MinDate and MaxDate properties on the DateTimeEditor but it's resulting in some weird behaviour.
e.g. My range is 6/6/12 8:00 AM to 6/6/12 8:00 PM. User starts a row and gets 8:00 AM as start and end time, and is placed on end time cell to edit.
Placing the caret in the hours part of the time and pressing up/down cycles the hours between 8 and 20. This I suppose makes sense for a 24 hour time format, except I'm not using one. The user, though, can cycle to '17:00 PM' which makes no sense.
It gets worse, though. When the Min/Max is set to 6/06/12 8:00:00 PM to 6/07/12 8:00:00 AM then the hours still cycle between 8 and 20. The user can't get to '7:30 AM' - and if they TYPE 7:30 AM they get the message that 'the input value does not satisfy maximum value constraint'.
I read the post http://forums.infragistics.com/forums/p/31739/173953.aspx#173953 and it seems related, but it's nearly three years old.
Can I fix this by applying some other property, or is this a bug?
Hello,
I have sent your product idea directly to our product management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your feature is chosen for development, you will be notified at that time. Your reference number for this product idea is PI12060061.
Thank you for your request.
I will be happy to assist you with your question.
The DateTimeEditor doesn't have Min/Max properties for Time. The MinDate and MaxDate properties are used to get or set the min or max date that will be accepted by the control, therefore they cannot be used to set min or max time. To learn more information about the properties for the UltraDateTimeEditor, please visit our help documentation found here. I am in the process of submitting a product idea for this functionality. I will update you on this forum post as soon as this process is complete.
Please let me know if you have any questions regarding this matter.