Hi I'm Pablo and I'm facing an issue adding a custom filter to a column, using a filter template.the problem:
when I click con the multiselect, it blinks and fades away (might be related to the tabindex), this is the code:
.html
<ejs-grid #grid [dataSource]='dataGrid | async' [allowPaging]="true" [pageSettings]='pageSettings' [filterSettings]='filterOptions'
[allowSorting]="true" [allowFiltering]="true" [allowGrouping]="true" height=315 (dataStateChange)='dataStateChange($event)'>
<e-columns>
<e-column field='contact' headerText='Contact' textAlign='left' width=150></e-column>
<e-column field='action' headerText='Action' width=100>
<ng-template #filterTemplate let-data>
<ejs-multiselect id='actionsMultiselectFilter' [mode]="actionsSelectMode" [enabled]="true"
(change)=onActionMultiselectFilterChange($event) [dataSource]='actionsData' [fields]='actionsFields'
[placeholder]="actionsPlaceholder">
</ejs-multiselect>
</ng-template>
</e-column>
<e-column field='modified' headerText='Mod. Date' textAlign='left' width=120 [allowFiltering]="false"></e-column>
<e-column field='modifiedBy' hea...
.ts
@ViewChild('grid')
public grid: GridComponent;
public actionsData: Object[] = [
{ id: '1', action: 'Add' },
{ id: '2', action: 'Modify' },
{ id: '3', action: 'Delete' },
{ id: '9', action: 'Merge record' },
{ id: '10', action: 'Create record' }
];
public actionsFields: Object = { text: 'action', value: 'id' };
public actionsPlaceholder: string = 'Select actions..';
public actionsSelectMode : string = 'CheckBox';
public onActionMultiselectFilterChange(args: any): void {
this.grid.filterByColumn('action', 'equal', args.value);
}
(if I press the input and holding move to the dropdown area, it stays and can filter and I get the right filters, thats part is ok )
thanks.