#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: |
Description
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)
Change History (4)
Changed 12 years ago by
Attachment: | test_GridInTabContainer.html added |
---|
comment:1 Changed 12 years ago by
Owner: | changed from Bryan Forbes to Nathan Toone |
---|
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by
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.
(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