Search
Grid.scrollRow Property
See Also
 






Gets or sets the index of the first visible row.

Namespace: MindFusion.DataViews
File: Grid.js

 Syntax

JavaScript  Copy Code

get scrollRow() {}

 Property Value

Number. The row index.

 Example

The following code handles the rowCommand event of the Grid and scrolls to the row to be edited:

JavaScript  Copy Code

grid.rowCommand.addEventListener(function (sender, args)
{
    if (args.commandName == "Edit")
    {   
         grid.scrollRow = args.Row;
    }

}

 See Also