Opened 9 years ago

Closed 8 years ago

#11990 closed defect (invalid)

DataGrid rerenders even when it's not visible

Reported by: Remoun Metyas Owned by: Bryan Forbes
Priority: high Milestone: tbd
Component: DojoX Grid Version: 1.5
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by bill)

A (Data)Grid in a TabContainer continues to fetch data even when it's not (in) the selected tab; that doesn't sound right.

Patch attached; depends on #11988 and #11989.

Attachments (1)

Grid.hide.patch (616 bytes) - added by Remoun Metyas 9 years ago.
dojox.grid._Grid shouldn't re-render when it's offscreen

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Remoun Metyas

Attachment: Grid.hide.patch added

dojox.grid._Grid shouldn't re-render when it's offscreen

comment:1 Changed 9 years ago by bill

Owner: changed from bryanforbes to Bryan Forbes

comment:2 Changed 9 years ago by Remoun Metyas

Revisiting this, I'm not sure it's that wasteful to pre-fetch, since it makes tab switches instantaneous/quicker. Perhaps it's better to just make DataGrid?/_Grid more flexible w.r.t loading when hidden?

comment:3 Changed 9 years ago by bill

Description: modified (diff)

That's always the tradeoff between initial page-load speed vs. speed of switching tabs. This issue isn't specific to Grid though, same thing with ContentPane. ContentPane by default loads on show, although it has a prefetch=true flag.

comment:4 Changed 8 years ago by Bryan Forbes

Resolution: invalid
Status: newclosed

The grid has the autoRender option which will keep it from rendering on startup and will wait to render until it is displayed.

Note: See TracTickets for help on using tickets.