dhtmlx grid getRowsNum() issue

hi,



we are using latest dhtmlx version, i got an issue while referring grid.getRowsNum() method, to get the total number of rows in the grid.



Scenario : loading 50 rows initially, and on demand i am appending 100 rows to the existing rows. After appending the rows when i use getRowsNum() is not giving me exact count (instead of 150 rows its giving me random number less than 150 rows), do i need to use any kind of refresh method to get the exact count ?




Hello


please provide the example of getRowNum() usage to reproduce the issue