Show/Hide Dojo Data Grid  - JS API

Discussion created by jakgis on Aug 25, 2011
Latest reply on Aug 25, 2011 by stevel
I have a Web tool built using and ArcGIS REST service using JS API.

The top (region) pane contains the search (findTask) box.
The center pane contains the map.
The right pane contains the data grid.

The tool works fine.  Next I'd like to add the capability to collapse and show the right region pane at will?  I'm not finding any solutions online.  Any ideas?

The pane is in a <div> tag below.


<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" style="width:400px;">
     <table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="grid"  id="grid" data-dojo-props="rowsPerPage:'50', rowSelector:'20px'">
          <th field="ST_ABBR" width="35">ST</th>
          <th field="CENTER" width="200">WC</th>