Skip to content

Commit

Permalink
Merge pull request #11195 from IgniteUI/VDyulgerov/fix-GridState-Load…
Browse files Browse the repository at this point in the history
…-13.1.x

fix(grid): add case for dateTime
  • Loading branch information
hanastasov authored Mar 14, 2022
2 parents 023ecf8 + 9ef093f commit 38778e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions projects/igniteui-angular/src/lib/grids/state.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import { IgxColumnGroupComponent } from './columns/column-group.component';
import { IGroupingExpression } from '../data-operations/grouping-expression.interface';
import { IPagingState } from '../data-operations/paging-state.interface';
import { GridColumnDataType } from '../data-operations/data-util';
import { IgxBooleanFilteringOperand, IgxNumberFilteringOperand, IgxDateFilteringOperand,
IgxStringFilteringOperand, IFilteringOperation} from '../data-operations/filtering-condition';
import {
IgxBooleanFilteringOperand, IgxNumberFilteringOperand, IgxDateFilteringOperand,
IgxStringFilteringOperand, IFilteringOperation, IgxDateTimeFilteringOperand
} from '../data-operations/filtering-condition';
import { IGroupByExpandState } from '../data-operations/groupby-expand-state.interface';
import { IGroupingState } from '../data-operations/groupby-state.interface';
import { IgxGridComponent } from './grid/grid.component';
Expand Down Expand Up @@ -587,6 +589,9 @@ export class IgxGridStateDirective {
case GridColumnDataType.Date:
filters = IgxDateFilteringOperand.instance();
break;
case GridColumnDataType.DateTime:
filters = IgxDateTimeFilteringOperand.instance();
break;
case GridColumnDataType.String:
default:
filters = IgxStringFilteringOperand.instance();
Expand Down

0 comments on commit 38778e6

Please sign in to comment.