Opened 7 years ago

Closed 6 years ago

#14899 closed defect (invalid)

JsonRest / JsonRestStore and pagination plugin

Reported by: Matej Owned by: Kris Zyp
Priority: undecided Milestone: 1.9
Component: Data Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

When I use the JsonRest? or JsonRestStore? and delete item from a grid, pagination plugin restores data. When I delete row and use pagination menu, data will be restored. Is it a bug or something wrong in my code?

Attachments (5)

jsonrest-1.jpg (57.6 KB) - added by Matej 7 years ago.
selecting and deleting row
jsonrest-2.jpg (56.9 KB) - added by Matej 7 years ago.
row 5 was deleted
jsonrest-3.jpg (83.1 KB) - added by Matej 7 years ago.
click all or next page and see what happen
jsonrest-claro.html (2.3 KB) - added by Matej 7 years ago.
Source code
data.json (1.7 KB) - added by Matej 7 years ago.
json data

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by Matej

Attachment: jsonrest-1.jpg added

selecting and deleting row

Changed 7 years ago by Matej

Attachment: jsonrest-2.jpg added

row 5 was deleted

Changed 7 years ago by Matej

Attachment: jsonrest-3.jpg added

click all or next page and see what happen

comment:1 Changed 7 years ago by bill

Component: GeneralData
Owner: set to Matej
Status: newpending

Please attach a test case (an HTML file).

Changed 7 years ago by Matej

Attachment: jsonrest-claro.html added

Source code

comment:2 Changed 7 years ago by Matej

Status: pendingnew

Attachment (jsonrest-claro.html) added by ticket reporter.

comment:3 Changed 7 years ago by Matej

If I select the second page, data start from id = 1 instead id = 11.

Last edited 7 years ago by Matej (previous) (diff)

comment:4 Changed 7 years ago by bill

Status: newpending

Don't you need to attach data files too? The JsonRest store is just pointing at "xxx", which doesn't exist.

Changed 7 years ago by Matej

Attachment: data.json added

json data

comment:5 Changed 7 years ago by Matej

Status: pendingnew

Attachment (data.json) added by ticket reporter.

comment:6 Changed 7 years ago by bill

Owner: changed from Matej to Kris Zyp
Status: newassigned

comment:7 Changed 6 years ago by dylan

Milestone: tbd1.9
Resolution: invalid
Status: assignedclosed

Was this ever resolved? I've not seen this issue commonly, so I'm thinking it was an issue with your code. If you think it's an issue with dojo/store/JsonRest, please reopen.

Note: See TracTickets for help on using tickets.