PDA

View Full Version : [FIXED] Editable Grid example bug



mabco
30 Mar 2009, 3:47 PM
- Detailed description of the problem

In the Editable Grid example, if the grid has been sorted by clicking on one of the column headers, the next time "Add Plant" is selected, the grid gets populated with another full set of data, so there are now duplicate rows in the table. At this point, the "Add Plant" functionality is basically broken.

- GXT version

1.2.3

- Host mode / web mode / both

Both

- Browser and version

Hosted mode. Also IE6, Mozilla 3.x

- Operating System

Windows XP SP3

- Sample code

See source code for:

http://extjs.com/examples/grid/editable.html

- Question

Why is this happening? Is it a bug in the API? If not, what is the workaround?

mabco
30 Mar 2009, 7:10 PM
I took the Editable grid example code and tried calling grid.reconfigure(grid.getStore(), origColModel) when I see the SortChange event, but it seems to cause other problems, e.g. it breaks sorting.

Since I need to implement very similar (almost identical) functionality as the Editable Grid example, I really need to find out if this is a bug or there is something else the code needs to do to deal with sorting and keep the grid and store in sync.

Thanks.

sven
6 Apr 2009, 2:03 PM
Fixed in SVN