Ticket #6706 (closed defect: fixed)
grid has rows but has no data after using setModel
| Reported by: | guest | Owned by: | sorvell |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | DojoX Grid | Version: | 1.0 |
| Severity: | normal | Keywords: | grid |
| Cc: | kevin.chin@… |
Description
environment:
firefox 2.0.0.14 in windows XP professional sp2 on dell intel box
steps to reproduce:
1) use setModel method with a model with data 2) use setModel method with a model with no data 3) use setModel method with a model with data
expected result:
after step 1, grid has data. after step 2, grid is empty. after step 3, grid has new data.
observed result:
step 1 and 2 are correct. step3, grid generates the correct # of rows but the rows contain no data
possible fix:
in grid.js file, the method _setModel: change:
this.model.observer(this); this.model.measure(); this.indexCellFields();
to:
this.model.observer(this); this.indexCellFields(); this.model.measure();