Note that there are some explanatory texts on larger screens.

plurals
  1. POSplitters between two Dojo DataGrids
    text
    copied!<p>I'm not sure if this is a Dojo or CSS specific question.</p> <p>I'm trying to place two Dojo DataGrids vertically in a container, where the bottom of the bottom grid will not rise above the bottom of the container, and the splitter between the two grids will grow or shrink the grids as it is moved. As the splitter moves up it should enlarge the display of the bottom grid, but only up to the point where all of the items are displayed.</p> <p>What's happening is when I move the splitter up, the entire bottom grid moves up and down. I tried including an image showing this, but I don't have enough rep points.</p> <p>Right now my layout looks like this:</p> <p><div class="snippet" data-lang="js" data-hide="false"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-override"><code>dojo.require("dijit.layout.BorderContainer"); dojo.require("dojox.grid.DataGrid");</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6/dojo/resources/dojo.css"&gt; &lt;link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dijit/themes/tundra/tundra.css" media="screen" /&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.0/dojo/dojo.xd.js" data-dojo-config="isDebug: true, parseOnLoad: true"&gt;&lt;/script&gt; &lt;body class="tundra"&gt; &lt;div id="appLayout" class="demoLayout" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline'"&gt; &lt;div class="demoLayout" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="title:'Results', design:'headline', region:'center', splitter:false"&gt; &lt;div class="leftPanel" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline', region:'left', splitter:false"&gt; &lt;div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"&gt; &lt;h2&gt;ContentPane&lt;/h2&gt; &lt;/div&gt; &lt;div id="grid1" data-dojo-type="dojox.grid.DataGrid" data-dojo-props="region:'center', columnReordering:'true', keepSelection:'true', splitter:false"&gt; &lt;/div&gt; &lt;div id="grid2" data-dojo-type="dojox.grid.DataGrid" data-dojo-props="region:'bottom', columnReordering:'true', keepSelection:'true', splitter:true"&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt;</code></pre> </div> </div> </p> <p>Do I anchor the bottom grid using CSS? Do I need something between my two DataGrids? Thanks for any pointers. I can include Javascript behind the scenes if needed.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload