load(args) {
var instance = this.grid; // gridObject
instance.element.addEventListener("mousedown", function(e) {
let target: HTMLElement = closest( e.target as Element, ".e-headercell" ) as HTMLElement;
if (target) {
(instance.sortModule as any).showPopUp(e);
}
});
} |
<ejs-grid #grid class="sortingenabled" [dataSource]='data' allowPaging='true' [allowSorting]='true' [allowMultiSorting]='true' [pageSettings]='pageSettings' (load)="load($event)">
<e-columns>
…………
</e-columns>
</ejs-grid> |