Opened 10 years ago

Closed 10 years ago

#9821 closed defect (invalid)

DataGrid._onSet does not handle change in item identity

Reported by: fgamador Owned by: Bryan Forbes
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description

If the identity attribute of an item in the datastore changes, DataGrid? should update its internal index (i.e. this._by_idty), but it does not. I ran into this because I allow the user to create new objects by adding rows to the grid. The items for those rows are given a temporary identity. When the user saves their changes, the items get new identities from the server. However, DataGrid? still indexes them under their old identities, which causes problems.

Change History (1)

comment:1 Changed 10 years ago by Nathan Toone

Resolution: invalid
Status: newclosed

You can't change the identity value of an item in a store. That is explicitly disallowed by the dojo.data API.

Note: See TracTickets for help on using tickets.