Ticket #5642 (closed defect: fixed)
Grid: ItemFileReadStore, after sorting, edit data in table disappears
| Reported by: | guest | Owned by: | sorvell |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | DojoX Grid | Version: | 1.0 |
| Severity: | normal | Keywords: | grid itemfilereadstore model sort |
| Cc: | frank.fortson@… |
Description (last modified by BryanForbes) (diff)
frankf: The Jan 15 Ticket 5555 fixed Ticket 5275 (incorrect model data resulting from a sort on an edited *write* store), but now the same test file (and steps to reproduce) shows that edits in the model are not passed through to the *read* store, which, when restored via sort (from the store), erases the model changes. In other words, edits in the model do not pass through to the store, when a read store is used. This may be by design??
To duplicate, do the same test in Ticket 5275, but notice that after a sort, the left Grid (read store) no longer shows the changes.
IIRC, the problem will be in model.js, datumChange:, where it writes the changes to the store *if* the store supports "write", e.g., if(this._canWrite){...
Again, this may be by design, not sure. If so, should the grid reject the user's model changes for a read store?