<ejs-grid id="GridOverview" actionBegin="actionBegin">
......
</ejs-grid>
<script>
function actionBegin(args) {
if (args.requestType === 'beginEdit') {
var tooltips = args.row.querySelectorAll('.e-tooltip');
for (var i = 0; i < tooltips.length; i++) {
tooltips[i].ej2_instances[0].destroy();
}
}
}
</script>
|
<script>
function tooltip(args) { // event triggers on every cell render.
var tooltip = new ej.popups.Tooltip({
content: args.data[args.column.field].toString(),
opensOn: 'Hover' // add Essential JS2 tooltip for every cell.
},args.cell);
}
</script>
|