Sets the focus to the cell at the specified position.
Namespace: MindFusion.DataViews
File: Grid.js
SyntaxJavaScript
Copy Code
|
|---|
function focusCell (row, column, moveBackwards) |
Number. The cell row.
Number. The cell column.
Boolean. True to move backwards.
RemarksIf the cell at the specified position is not editable, the focus is set to the next editable cell, if such exists.
ExampleThe following code calls the focusCell method to bring the cell to be edited in focus:
JavaScript
Copy Code
|
|---|
grid.rowCommand.addEventListener(function (sender, args) var editRow = args.row; grid.refreshRows(editRow); grid.allowEdit = true; grid.focusCell(editRow, 0); |
See Also