Search
Grid.rowRendered Event
See Also
 






Raised when a row is rendered.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

EventDispatcher rowRendered

 Event Data

The event handler method receives the following arguments:
sender
A Grid instance, which is the source of the event. This object will be passed to the handler function as the first argument.
args
A RowModifiedEventArgs instance, which contains event data. This object will be passed to the handler function as the second argument.

 Example

The following code handles the rowRendered event of a Grid instance and paints the background of cells in the 6th column, whose value is more than 2000, in light orange:

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