Author Topic: How to get row height and cell height  (Read 2405 times)

xin

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 14
    • View Profile
How to get row height and cell height
« on: May 10, 2016, 11:47:11 pm »
I am trying to do some customization.  How could I get height of particular row or cell in a grids?
Thanks.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: How to get row height and cell height
« Reply #1 on: May 11, 2016, 10:04:58 am »
Row/cell height can be calculated as $tr.outerHeight() or $tr[0].offsetHeight

$tr, $td can be obtained by API

http://paramquery.com/pro/api#method-getRow

http://paramquery.com/pro/api#method-getCell

Note: height of rows/cells not rendered in the viewport can't be calculated.
« Last Edit: May 11, 2016, 10:23:20 am by paramquery »