Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a tip that an explicit resize() might be needed when grid is put …
…in a hidden dialogue or tabcontainer
  • Loading branch information
evanhw authored and Website Account committed May 20, 2012
1 parent 6d5c087 commit df58135
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dojox/grid/DataGrid.rst
Expand Up @@ -1346,7 +1346,7 @@ Keeping row selection across various actions e.g. sorting, filtering is a known

However, in Dojo 1.7, a new attribute named 'keepSelection' is added trying to make it work under some scenario, the 'keepSelection' attr can be applied to any Grid types including DataGrid, EnhancedGrid, TreeGrid or LazyTreeGrid e.g

.. html ::
.. js ::
require(['dojox/grid/DataGrid', 'dojox/grid/EnhancedGrid', 'dojox/grid/TreeGrid', 'dojox/grid/LazyTreeGrid', 'dojo/domReady!'],
function(DataGrid, EnhancedGrid, TreeGrid, LazyTreeGrid) {
Expand All @@ -1368,6 +1368,15 @@ But please note:
2. Known issue - it might not be accurate if some unloaded rows are selected by range(e.g.SHIFT + click)


Display grid from a hidden container
------------------------------------

There are some occasions when grid is created within a hidden container e.g. Dialogue or TabContainer etc. an explicit resize() might be needed to let grid calculate its size appropriately

.. js ::
grid.resize();
Accessibility in 1.3 and Beyond
===============================
Expand Down

0 comments on commit df58135

Please sign in to comment.