Gets a reference to the grid data table DOM element.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
get dataTable() {} |
HTMLDivElement. The data table element.
The following code handles the rowCommand event, disables editing of the grid that triggered the event and changes its background color:
JavaScript Copy Code |
---|
grid.rowCommand.addEventListener(function (sender, args) { if (args.commandName == "Lock") { sender.allowEdit = false; sender.activeEditor = null; sender.dataTable.style.backgroundColor = "#FFDD75"; } } |