addRow and getRowsNum

I’ve a problem adding a row to a grid, with addRow method. The row is correctly added, with a new id provided, but if I try to use getRowsNum() the results is always the old number of rows.



There is any kind of grid refreshing that I’ve to perform ?



Best regards

The getRowsNum must return the valid result without any refreshes.
Are you using grid in plain mode or paging|srnd ?
Please provide the code snippet, which was used for new row adding


Stanislav I’ve found the problem. Before adding a row, I call a function that clear all filters in the grid, and this create an inconsistent state of the rows of the grid. I’ve solved this with a work around.

Thanks for the quick response.

Best regards.