<ejs-grid #grid [dataSource]='data' allowPaging='true' allowFiltering='true' [pageSettings]="pageOptions">
<e-columns>
<e-column field='ProductName' headerText='Product Name' width='150'>
<ng-template #filterTemplate let-data>
<ejs-multiselect id='actionsMultiselectFilter' #multi [mode]="actionsSelectMode" [enabled]="true" (change)=onActionMultiselectFilterChange($event)
[dataSource]='actionsData' [fields]='actionsFields' [placeholder]="actionsPlaceholder" (open)='onOpen($event)' (close)='onClose($event)'>
</ejs-multiselect>
</ng-template>
</e-column>
</e-columns>
</ejs-grid>
|
onOpen(e) {
if (this.mulObj.element.parentElement.getAttribute('tabindex') === '-1') {
this.mulObj.element.parentElement.setAttribute('tabindex', '0');
}
}
onClose(e){
if (this.mulObj.element.parentElement.getAttribute('tabindex') === '0') {
this.mulObj.element.parentElement.setAttribute('tabindex', '-1');
e.cancel = true;
}
}
|