Search
Grid.bringIntoView Method
See Also
 






Ensures that the specified row is visible.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

function bringIntoView (row)

 Parameters

row

Number. The row.

 Example

The following code handles the rowUpdated event and brings the updated row into view:

JavaScript  Copy Code

var dv = MindFusion.DataViews;

grid.rowUpdated.addEventListener(onRowUpdated);

function onRowUpdated(sender, args)
{
    var maxIndex = sender.model.getMaxKey();
    args.rowData["index"] = ++maxIndex;
    sender.bringIntoView(maxIndex);
}

 See Also