Can anyone tell me why when I enter 01:00 into the WebDateTimeEdit control on postback I get 1:00:05 AM on postback. Why is this extra 5 seconds being added? This is missing up my ability to subtract an start time from end time to get a TimeSpan. The result is always wrong. Can anyone tell me how to fix this?
Here is the WebDateTimeEdit tag I'm using.
<igtxt:WebDateTimeEdit EditModeFormat="HH:mm" ID="dateTimeEditor" runat="server" />
Hello,
Thanks for the follow-up. This certainly does not seem right. What I can suggest is trying to bind the grid to the same column type, but without the editor used in EditorControlID (just for test, to make sure you are getting the same or different value -- this way we will at least have isolated where the problem is) and / or to stock asp:GridView to see if you have the same problems. These tests will let us know where the problem is - in grid logic, in datasource logic or in WebDateTimeEdit itself.
Then, if you still do have any progress, I believe the best way to proceed would be to contact Developer Support directly via the following link
http://ko.infragistics.com/Support/default.aspx
since I am afraid these types of problems are sometimes hard to investigate over public forums.
Thanks.
Yes, I am using this in a UltraWebGrid column as a column editor. I don't understand why that would matter though. I would expect the result of the value to be the same inside of outside of the grid, unless the grid itself is affecting the value the WebDateTimeEdit returns.
I am guessing here here, but this looks like the WebDateTimeEdit is bound each time to the server current time (DateTime.Now()), which could also be the default mode of the editor. Are you binding to a specific value? Or you using WebDateTimeEdit as a column editor in the grid? Some details will cerainly provide additional clues.