-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OndemandGrid not removing all items from trackable store #1305
Comments
Can you provide some more details on the bug you are observing?
I don't see any problem that matches what you are describing, but I am looking into this issue:
|
This is on Chrome (52) safari and I do believe we've seen it on firefox but haven't personally tried it. Let me know if there is anything I can help you with. |
@wildcatcs Following your instructions in Chrome 52 I don't see any issues. The ids will change each time you press refresh, but I'm seeing consistently correct sorting and no duplicate values in the integer column. |
When the "integer" column is sorted ascending, the test page's "Refresh" button removes rows from top to bottom. When the "integer" column is sorted descending the rows are removed from bottom to top. When |
If the rows of a grid are removed from bottom to top then each row removal will decrement rows.max, including the final row removal which will set rows.max to -1. This breaks the logic in _StoreMixin's 'add, update' event handler preventing insertion of new rows when items are added to the store. Fixes dojo#1305
If the rows of a grid are removed from bottom to top then each row removal will decrement rows.max, including the final row removal which will set rows.max to -1. This breaks the logic in _StoreMixin's 'add, update' event handler preventing insertion of new rows when items are added to the store. Fixes #1305
If the rows of a grid are removed from bottom to top then each row removal will decrement rows.max, including the final row removal which will set rows.max to -1. This breaks the logic in _StoreMixin's 'add, update' event handler preventing insertion of new rows when items are added to the store. Fixes #1305
When an OnDemandGrid is given a trackable store with a moderate number of items, when all of the items are removed and a new set added not all of the original rows are deleted. This only happens if one of the columns is sorted.
Code simply removes all items from a trackable gird, than adds a new 200 items to the collection each time the refresh button is pressed. It works fine unless the grid is sorted on the Integer column. Then the grid's sort gets messed up and items that were removed from the collection are not removed from the grid. Changing the sort cleans up the bad rows.
Realize this would probably be a case for just setting a new collection, but this problem also happens if you are removing a large portion of the overall set of data.
Sample code attached (warning not pretty, just hacked up performance.html)
performance.txt
The text was updated successfully, but these errors were encountered: