SitePen/dgrid — pull request #511 by gratex (2013-03-27 15:42:29+00:00)
Title: [SAMPLE] simulate pagination bug when adding new row

pagination extension is not being notified about adding new item into observable store in the case when item should be inserted into the next page.

The root of this problem seems to be inside dojo/store/Observable
https://github.com/dojo/dojo/blob/master/store/Observable.js#L103

Variable insertedInto equals -1 which prevents notifying listeners (in this case pagination extension) about changes and therefore grid will not update total count of items neither page links. User can not see new rows, because these rows are on the other page, however link to the other page was not created... User will see new rows only in the case, when other notification was fired (sort, delete, etc).

We have added simple testcase where you can try it. Just create more than three rows.
When you comment out line #103 in Observable store, it seems to be working correctly.