Search
Grid.model Property
See Also
 






Gets or sets the data model of this Grid.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

get model() {}

 Property Value

An instance of the GridModel class that represents the model.

 Example

The following code handles the rowRendered event of a Grid instance and uses the model property to get the value of the cells in the 6th column:

JavaScript  Copy Code

grid.rowRendered.addEventListener(function (sender, args)
{
    var value = sender.model.value(args.row, 5);

    if (value > 2000)
    {
        sender.getCellElement(args.row, 5).style.backgroundColor = "#FFDD75";
    }
});

 See Also