|
[app.component.html]
<ejs-tooltip position='RightCenter' opensOn='Click' style="display:block;position:absolute;">
<button ejs-button >Show Tooltip</button>
<ng-template #content >
<ejs -grid #grid [dataSource]='data' [allowSelection]='true' [selectionSettings]='selectOptions' (rowSelected)='selected($event)' >
<e-columns>
. . . . . .
</e-columns>
</ejs-grid>
</ng-template>
</ejs-tooltip> |
|
[app.component.ts]
selected(args){
var gridObj = document.getElementsByClassName('e-grid')[0].ej2_instances[0];
var record = gridObj.getSelectedRecords();
console.log(record);
} |