Opened 10 years ago
Closed 10 years ago
#13818 closed defect (invalid)
DataGrid + JsonRestStore: incorrect event handling
Reported by: | IIIEII | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX Data | Version: | 1.6.1 |
Keywords: | JsonRestStore DataGrid | Cc: | |
Blocked By: | Blocking: |
Description
I'm using DataGrid? with JsonRestStore?. Some of my columns are DateTextBox? cells. Case:
- Doubleclick on DateTextBox? cell (start editing)
- Click on any other row (not cell)
- Value in DateTextBox? disappeared
I debugged some code and found strange thing: DataGrid?._onSet (which updates row after edit) connected to store.onSet event. But JsonRestStore?.setValue method gets new store for every item (dojox.data._getStoreForItem(item)). Of course new store events not connected to DataGrid?, and DataGrid?._onSet not executes.
My example is in attachment. I've changed test_edit_dijit.html from dojox/grid/tests to reproduce issue. For this example I've used transactions.json (put in into dojox/grid/tests/support) to emulate rest service.
Attachments (2)
Change History (5)
Changed 10 years ago by
Attachment: | test_edit_dijit_.html added |
---|
comment:1 Changed 10 years ago by
Owner: | changed from Jared Jurkiewicz to Kris Zyp |
---|
comment:2 Changed 10 years ago by
You're right! The best method to fix the bug is waiting!
I've changed my RESTful backend from FRAPI to Slim framework.
Now it works as expected!
comment:3 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Comment implies fix was on user end with the service. Closing as invalid.
example