Posted 29 October 2019, 11:26 am EST
Hello,
I am using wj-flex-grid along with wj-flex-grid-filter.
Here is my code.
In the Html file I have below code.
<wj-flex-grid #displayGrid class=“expand-to-fit”
[itemsSource]=“gridCollection”
[isReadOnly]=“true”
[headersVisibility]=“‘Column’”
[selectionMode]=“‘None’”
[allowSorting]=“false”
[allowResizing]=“‘None’”
[allowDragging]=“‘None’”
[showAlternatingRows]=“false”
[frozenColumns]=“0”
>
<wj-flex-grid-filter #filter [filterColumns]=“[‘Full Name’,‘Abbreviation’]”>
and in the component.ts I have below code.
@ViewChild(‘displayGrid’) grid: wijmo.grid.FlexGrid;
@ViewChild(‘filter’) filter: wijmo.grid.filter.FlexGridFilter;
gridCollection:wijmo.collections.CollectionView;
ngAfterViewInit(){
if(this.grid) { this.grid.itemFormatter = this._gridItemFormatter.bind(this); this.grid.updatedView.addHandler(this._onGridUpdatedView.bind(this)); this.filter.defaultFilterType = wijmo.grid.filter.FilterType.Condition; this.filter.showSortButtons = false; } this.viewInit = true; }
I can see the filter icons on the columns but when I search for some specific data, the filter doesn’t work. It won’t display any rows even though I know the value is there.
thanks
Pradnya