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:


I'm using DataGrid? with JsonRestStore?. Some of my columns are DateTextBox? cells. Case:

  1. Doubleclick on DateTextBox? cell (start editing)
  2. Click on any other row (not cell)
  3. 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 ( 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)

test_edit_dijit_.html (4.3 KB) - added by IIIEII 10 years ago.
transactions.json (230 bytes) - added by IIIEII 10 years ago.
rest service emulation

Download all attachments as: .zip

Change History (5)

Changed 10 years ago by IIIEII

Attachment: test_edit_dijit_.html added


Changed 10 years ago by IIIEII

Attachment: transactions.json added

rest service emulation

comment:1 Changed 10 years ago by Jared Jurkiewicz

Owner: changed from Jared Jurkiewicz to Kris Zyp

comment:2 Changed 10 years ago by IIIEII

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 Jared Jurkiewicz

Resolution: invalid
Status: newclosed

Comment implies fix was on user end with the service. Closing as invalid.

Note: See TracTickets for help on using tickets.