Opened 12 years ago

Closed 12 years ago

#6135 closed defect (fixed)

[patch][test][cla] Adding data to an empty store produces grid with all ? for values

Reported by: nathan Owned by: sorvell
Priority: high Milestone: 1.1
Component: DojoX Grid Version: 1.1b1
Keywords: Cc:
Blocked By: Blocking:

Description

Since _setupFields is only called if there happens to be data in the store initially, adding data to an empty store will not work correctly.

The suggested fix is to check if fields have been set up when inserting a row in the DojoData? model. A patch and testcase follow.

Attachments (1)

gridAdd.patch (2.8 KB) - added by nathan 12 years ago.
Test case and fix for adding data to an initially-empty store

Download all attachments as: .zip

Change History (2)

Changed 12 years ago by nathan

Attachment: gridAdd.patch added

Test case and fix for adding data to an initially-empty store

comment:1 Changed 12 years ago by sorvell

Resolution: fixed
Status: newclosed

(In [13152]) !strict fixes #6135: Patch looks ok. Added as written. Also added slightly modified test that is attached to this bug as a grid test.

Note: See TracTickets for help on using tickets.