<ejs-tooltip id="tooltipContent" opensOn='Click' beforeOpen="toolTipBeforeOpen" target=".e-headercell,.e-rowcell" >
<e-content-template>
<ejs-grid id="Grid" dataSource="ViewBag.data" allowPaging="true">
<e-grid-columns>
<e-grid-column field="OrderID" headerText="Order ID" isPrimaryKey="true" textAlign="Right" width="120"></e-grid-column>
<e-grid-column field="CustomerID" headerText="Customer ID" width="150"></e-grid-column>
<e-grid-column field="EmployeeID" headerText="Employee ID" width="130" textAlign="Right"></e-grid-column>
<e-grid-column field="ShipCity" headerText="ShipCity" width="120"></e-grid-column>
</e-grid-columns>
</ejs-grid>
</e-content-template>
</ejs-tooltip>
<script>
function toolTipBeforeOpen (args) {
this.content = args.target.innerText;
}
</script> |