Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
400
date column and spinner as time editor doesn't work proberly
posted

Hallo,

we use a grid with a date column set as time editor with spinner. ((editorType "date", buttonTyp "spin" enableUTCDates true, format "time"))

The initial cell value is null. After editcellstarted, we can enter a time ("__:__") or use the spinner to set a time value. if we leave the cell, no time/date value gets returned to editCellEnded. 

We found an issue in infragistics.lob. line 15155, function _parseDateFromMaskedValue.

There new Date(Date.UTC()) is used. Date.UTC() expects an formated string or date-split parameters. Calling Date.UTC() results in an Invalid Date and nothing gets returned to the editCellEnded event.

our temp fix:

if (this.options.enableUTCDates) {
var now = new Date;

extractedDate = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), now.getUTCDate(),
now.getUTCHours(), now.getUTCMinutes(), 0,0));
} else {
extractedDate = new Date();
}

please have a look at this issue.

15.2.20152.2081


http://jsfiddle.net/uU7FH/355/