Opened 11 years ago

Closed 9 years ago

#13421 closed defect (patchwelcome)

Whole Screen Flicker Caused by Dojo Grid

Reported by: [email protected] Owned by: Evan
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.6.1
Keywords: grid flicker Cc: [email protected]
Blocked By: Blocking:


We have several dojo data grids in our application that we use inside of tab containers. Knowing that the grid doesn't work right inside of containers that have "display: none" set, we re-set the grid's data store when the content pane of the tab is visible again.

We've noticed that there are lots of places where refreshing the grid by resetting the store (per the docs) causes the whole screen of the browser to flash/flicker (not just the grid area - but the whole screen).

It seems like there's alot of different places in our application where we can tickle this bug. However, I have put together a contrived example that I have attached to this ticket in order to illustrate the issue.

Simply load the file and then follow these steps:

  1. Scroll down in the grid a little bit (this is critical to producing the problem).
  2. Click the button that has a label that starts with 'Toggle'
  3. Click the 'refresh' button.
  4. Click the button that has a label that starts with 'Toggle'
  5. Click the 'refresh' button.
  6. Observe screen flicker that occurs outside of the grid.

We have verified this behavior is firefox 3.6 on Windows XP and Ubuntu 10. It does not occur in firefox 3.6 on a Mac or in firefox 5 on Mac, Linux or Windows.

While the steps may seem contrived or unusual, please keep in mind that this is a real-world use case in our application. We often call setStore on grids that are inside of tab containers that are not active. This is due to use activity elsewhere in the application that necessitates reloading the store. I'd prefer not to have to litter my application with guard clauses.

In general, the DataGrid? really ought to handle being inside of tab containers, accordions, etc that are not currently selected. However - that is a larger issue.

Attachments (1)

display-none-example.html (7.1 KB) - added by [email protected] 11 years ago.
Static HTML Illustrating Screen Flicker Bug with Dojo DataGrid?

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by [email protected]

Attachment: display-none-example.html added

Static HTML Illustrating Screen Flicker Bug with Dojo DataGrid?

comment:1 Changed 11 years ago by Evan

Owner: changed from evan to Evan

comment:2 Changed 9 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:3 Changed 9 years ago by bill

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