I have two date columns in Angular SlickGrid, the column values of the table is based on a class. These two columns are based on two date fields of this class.
I want to display these values as dateTimeShortIso, but use the dateRange filter for each of these two columns.
For some reason, when actually using the filter, no data shows up
Here is the relevant part of the class
export class Task {
public createdDate: Date;
public dateUpdated: Date;
}
Here is how I populate the dataset
this._api
.getApiData()
.subscribe((res: Task) => {
this.dataset = res;
});
Here are the relevant column definitions.
this.columnDefinitions = [
{
id: 'createdDate', name: 'Created Date', field: 'createdDate', sortable: true, filterable: true,
formatter: Formatters.dateTimeShortIso, type: FieldType.date, filter: {
model: Filters.dateRange
}
},
{
id: 'dateUpdated', name: 'Date Updated', field: 'dateUpdated', sortable: true, filterable: true,
formatter: Formatters.dateIso, type: FieldType.date, filter: {
model: Filters.dateRange
}
}
];