Search
Grid.dataTable Property
See Also
 






Gets a reference to the grid data table DOM element.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

get dataTable() {}

 Property Value

HTMLDivElement. The data table element.

 Example

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"; 
    
    }
}

 See Also