Skip to main content

setCell()

sets selection to a specified cell

setCell(row?: any, col?: any): void;

Parameters:

  • row: object - an object with a cell to be selected
  • col: object - the config of a column

Example

var row = treegrid.data.getItem(treegrid.data.getId(0));var column = treegrid.getColumn("population");treegrid.selection.setCell(row, column);