Opened 9 years ago

Closed 6 years ago

#10866 closed defect (patchwelcome)

DataGrid in tab dropping items from DataStore when data changes

Reported by: rcarver Owned by: Bryan Forbes
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.4.0
Keywords: DataGrid DataStore Cc:
Blocked By: Blocking:


Not sure exactly what the bug is, but I've attached code to duplicate. Curiously, the bug test page works in chrome on Win7.

Basically I have an ItemFileWriteStore? (programmatically created) and a main page, with tabs loading two hrefed pages (I use dojox.layout.ContentPane? to ensure that the javascript on subpages is loaded). Tab1 has a filtered datagrid hooked into the store, tab2 has an unfiltered datagrid hooked into the store.

When the entire dataset is loaded in the tab2 grid and the datastore is changed, the tab2 grid only shows 25 items (instead of 45)

To reproduce:

  1. open the main page (DO NOT PRESS THE BUTTON)
  2. click on tab2
  3. scroll to bottom of datagrid.
  4. click on tab1
  5. press button which updates one datum in the data store.
  6. click on tab2 - only 25 datum are shown in the datagrid.

The workaround I found is to add a call to render() on the datagrid in tab2 when tab2 is shown (onShow for tab2)

Attachments (3)

tabGridBugTest.html (6.0 KB) - added by rcarver 9 years ago.
Main Page
tabGridBugTest1.html (410 bytes) - added by rcarver 9 years ago.
tab 1 sub page
tabGridBugTest2.html (303 bytes) - added by rcarver 9 years ago.
tab2 sub page

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by rcarver

Attachment: tabGridBugTest.html added

Main Page

Changed 9 years ago by rcarver

Attachment: tabGridBugTest1.html added

tab 1 sub page

Changed 9 years ago by rcarver

Attachment: tabGridBugTest2.html added

tab2 sub page

comment:1 Changed 9 years ago by rcarver

Oh, this bug shows up in IE 8 and FF 3.6 but NOT in Chrome 4.1 all on Win 7

comment:2 Changed 9 years ago by Douglas Hays

Owner: changed from bryanforbes to Bryan Forbes

comment:3 Changed 6 years ago by bill

DojoX Grid and EnhancedGrid are deprecated in favor of dgrid and gridx.

You should upgrade your code to use one of those two grids.

We will consider patches to the old DojoX Grid code though.

comment:4 Changed 6 years ago by bill

Resolution: patchwelcome
Status: newclosed
Note: See TracTickets for help on using tickets.