Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#7568 closed defect (fixed)

dojox.grid.DataGrid.update() isn't working properly if the grid is not visible (e.g. on a tab pane currently not displayed)

Reported by: Achim Klotz Owned by: Nathan Toone
Priority: high Milestone: 1.2
Component: DojoX Grid Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:


I'm placing a grid on a tab pane, then switching to another tab and calling the grid.update() method.

If I'm now turning back to the tab with the grid onto, the grid layout is completely destroyed.

See the attached file (should be put into the grid/tests folder) for an example

The grid is on tab 1, a button calling the update method on tab 2. After clicking the button and returning to tab1 the grid isn't visible any more

Attachments (1)

test_GridInTabContainer.html (4.7 KB) - added by Achim Klotz 13 years ago.

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by Achim Klotz

comment:1 Changed 13 years ago by Bryan Forbes

Owner: changed from Bryan Forbes to Nathan Toone

comment:2 Changed 13 years ago by Nathan Toone

Resolution: fixed
Status: newclosed

(In [15095]) Fixes #7568 - One part to fixing this issue...we no longer perform the update if the parent node is hidden in some way. This means that within your tab container, you will need to track whether or not the update needs to take place - and call grid.update() when the tab is displayed. That code is outside the scope of the grid itself. !strict

comment:3 Changed 13 years ago by bill

Version: 1.1.1

This will be "properly" fixed by #5672 since the grid won't be hidden anymore.

Note: See TracTickets for help on using tickets.