Opened 8 years ago

Closed 8 years ago

#13882 closed defect (fixed)

Grid editable - inconsistent behavior of dojox.grid.cells.Select when options[] and values[] both provided

Reported by: Evan Owned by: Evan
Priority: high Milestone: 1.7
Component: DojoX Grid Version: 1.7.0b1
Keywords: grid, edit, select, options, values Cc:
Blocked By: Blocking:

Description (last modified by Evan)

When options[] and values[] are both provided, the behavior of editable cell(dojox.grid.cells.Select) is inconsistent across 'display' and 'editing' state, steps to see the issue:

  1. Open dojox/grid/tests/test_data_grid_edit.html
  2. Change the 2nd <th> to
    <th field="type" width="auto" cellType="dojox.grid.cells.Select" values="country,city,continent" options="countryLabel,cityLabel,continentLabel" editable="true">Type</th>
    
  1. In that way we suppose "countryLabel,cityLabel,continentLabel" will be used for display in view, and "country,city,continent" are values in datastore.
  2. But the observation is incorrect - after a change is saved, options[] will always be disregarded and only values[] is used in both display and editing state.

Change History (2)

comment:1 Changed 8 years ago by Evan

Description: modified (diff)

comment:2 Changed 8 years ago by Evan

Resolution: fixed
Status: newclosed

In [26521]:

Fixes #13882 !strict when options[]/values[] both provided and there is no formatter, then use options[] for label displaying, and values are just the content from datastore.

Note: See TracTickets for help on using tickets.