Hi, I need to calculate the grid height based on the actual row height of each displaying row in the grid.
First, it seems that the getdisplayrows method always return the same number of rows as the getrows method, regardless of the current pagesize selected by user and the current page number.
Let’s say there are total 7 rows returned by the getrows method, and the current pagesize is 5 and the grid is displaying the second page,
is there a API method that returns the array for the last two rows.
Second, the actual row height of each row can be different because the autorowheight is set to true to allow some column’s long
text to be wrapped when the column width is not big enough for displaying it in one line. Is there a API method to get the actual row height for each row?
Lastly, the calculated total row height will be compared with the browser window’s available height and the smaller value will be set as the grid
height in order to avoid the browser’s vertical scroll bar from appearing. I am thinking that the grid height should be calculated and set whenever the following four events occur.
1) the jqxGrid’s bindingcomplete event
2) the jqxGrid’s pagesizechanged event
3) the jqxGrid’s pagechanged event
3) browser window’s resize event
Are these the current timings in respect of the API methods that could be suggested?