Hello,
I am trying to group by a date formated column and I get the error:
Uncaught TypeError: value.getDate is not a function
at date-formatter.js:99
at Object.ValueFormatter.toView (value-formatter.js:49)
at Data.formatGroupColumn (data.js:394)
at _loop_2 (util.js:157)
at Function.DataUtil.group (util.js:178)
at JsonAdaptor.onGroup (adaptors.js:234)
at JsonAdaptor.processQuery (adaptors.js:91)
at DataManager.executeLocal (manager.js:121)
Grouping by other columns works OK.
Column declaration:
var groupOptions: GroupSettingsModel = {
showDropArea: true,
showGroupedColumn: true,
};
var dateFormat: object = {type:'date', format:'dd/MM/yyyy'};
<GridComponent
...
allowGrouping={true}
groupSettings={groupOptions}
...
>
<ColumnsDirective>
<ColumnDirective
field='activityTime'
headerText='Time'
type='date'
format={dateFormat}
enableGroupByFormat={true}
></ColumnDirective>
Thanks in advance,
Robert