I figured out what is causing the issue for me. I have
serverPaging set to
true on the DataSource. This basically means I
have to call
DataSource.read() to get the pager to update. I don't want to have to do that in the scenario I described above. Since the user is cancelling the addition of a new record to the Grid, there should be no need to read from the database again. I would like the default behavior of the Pager to do what I'm asking, but since that doesn't occur, how can I update the Pager display manually?
Here is the same jsFiddle example with
serverPaging set to
true:
http://jsfiddle.net/V2QsW/1/. Add a new record and then click Cancel. The pager count does not update appropriately.