Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Manually Removing Rows Causes Invalid Count
posted

I'm using the templating feature in order to put a button in each row of my grid.  I need this do a bunch of business logic and then remove the row.  I'm removing the row by doing this:  button.parent().parent().remove();  This works wonderfully.  However, when I remove the rows from the grid this way, the grid gets confused because it thinks the rows are still there and thus does not update the row count on the bottom left corner of the grid (1 - X of X records).

As you can see from the example below, there are clearly only 6 row but the count still shows there are 8.

IG Grid Example

Is there any way to tell the grid to recalculate without having to completely reload it?

What is the best way to handle this issue?

Parents
No Data
Reply Children