Sets the focus to the cell at the specified position.
Namespace: MindFusion.DataViews
File: Grid.js
JavaScript Copy Code |
---|
function focusCell (row, column, moveBackwards) |
Number. The cell row.
Number. The cell column.
Boolean. True to move backwards.
If the cell at the specified position is not editable, the focus is set to the next editable cell, if such exists.
The 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); |