I am using the grid with the toolbar as is shown in the example:
What I would like to do is have the grid resize in height when the user selects more rows to display. For example, if in the example above, one selects 30 rows to display, I would like the grid to show all 30 rows without any vertical scroll bars.
Is this possible?
To calculate desire height you may use getSelectedRowId method to get number of selected row and multiply it to the grid row height. If you are not using multi line mode, row height is 20px
I will be using multi-line. Is there a way to add up all the row heights to get an exact count?
Also, what events do I need to attach to?