let grid: Grid = new Grid({
dataSource: new DataManager(employeeData as JSON[]).executeLocal(
new Query().take(8)
),
columns: [
{
field: "EmployeeID",
headerText: "Employee ID",
textAlign: "Right",
width: 100
},
----------------
],
gridLines : 'Both',
width: "auto",
height: 359,
load: function(args) {
grid.element.addEventListener("mouseover", function(args) {debugger
if (
args.target.classList.contains("e-rowcell")
) {
tooltip.content = args.target.innerHTML;
}
});
}
});
grid.appendTo("#Grid");
|