Skip to main content


returns the parameters of a cell

getCellRect(rowId: string | number, colId: string | number): object;


  • rowId: string | number - the id of a row
  • colId: string | number - the id of a column


An object with parameters of a cell.


const rect = treegrid.getCellRect("1","c");
// -> {x: 200, y: -40, height: 40, width: 200}

The return object includes the following attributes:

x(number) the X coordinate of a cell
y(number) the Y coordinate of a cell
height(number) the height of a cell
width(number) the width of a cell