<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Hiding a column in a dojox.grid.DataGrid in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243783#M22561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Ken Buja suggests, use dGrid instead.&lt;/P&gt;&lt;P&gt;With dGrid, you can hide a column when it is created or in css.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I don't know how to use DataGrid (anymore).&lt;/P&gt;&lt;P&gt;I think you may be able to use "hidden" as one of the parameters inside th tag with &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojox/grid/DataGrid.html"&gt;DataGrid&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nt"&gt;&amp;lt;th&lt;/SPAN&gt; &lt;SPAN class="na"&gt;... hidden="true"&lt;/SPAN&gt;&lt;SPAN class="s"&gt;&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;Column Name&lt;SPAN class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nt"&gt;&lt;SPAN class="nt"&gt;&amp;lt;th&lt;/SPAN&gt; &lt;SPAN class="na"&gt;... hidden="false"&lt;/SPAN&gt;&lt;SPAN class="s"&gt;&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;Column Name&lt;SPAN class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 19:50:20 GMT</pubDate>
    <dc:creator>YungKaiChin</dc:creator>
    <dc:date>2014-11-24T19:50:20Z</dc:date>
    <item>
      <title>Hiding a column in a dojox.grid.DataGrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243780#M22558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to hide a column in a datagrid because I'm using the objectid as a unique value to zoom to the graphic on the map. Obviously I don't want to display the objectid to the user so I'm trying to find a way to hide that column. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I've tried:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;declaratively - &amp;lt;th field="1" hidden="true"&amp;gt;&amp;lt;/th&amp;gt; - no result&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;programmatically - grid.layout.setColumnVisibility(1, false); - hides the whole grid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;css - &amp;lt;th field="1" style="display:none"&amp;gt;&amp;lt;/th&amp;gt; - no result&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have this code published to the web yet but I can if needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The whole table:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;lt;table dojotype="dojox.grid.DataGrid" jsid="grid" id="grid" &amp;gt;&amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th field="0" width="225px" &amp;gt;Results&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;th field="1" hidden="true"&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&amp;lt;/table&amp;gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 19:31:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243780#M22558</guid>
      <dc:creator>GlenRhea</dc:creator>
      <dc:date>2010-10-07T19:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a column in a dojox.grid.DataGrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243781#M22559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever figure out how to hide the Object ID field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243781#M22559</guid>
      <dc:creator>TONIFAIRBANKS</dc:creator>
      <dc:date>2014-11-24T16:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a column in a dojox.grid.DataGrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243782#M22560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://dgrid.io/"&gt;dGrid&lt;/A&gt;, the replacement for DataGrid, has a way to &lt;A href="https://github.com/SitePen/dgrid/blob/v0.4.0/doc/components/extensions/ColumnHider.md"&gt;hide columns&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:49:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243782#M22560</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-11-24T16:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a column in a dojox.grid.DataGrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243783#M22561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Ken Buja suggests, use dGrid instead.&lt;/P&gt;&lt;P&gt;With dGrid, you can hide a column when it is created or in css.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I don't know how to use DataGrid (anymore).&lt;/P&gt;&lt;P&gt;I think you may be able to use "hidden" as one of the parameters inside th tag with &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojox/grid/DataGrid.html"&gt;DataGrid&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nt"&gt;&amp;lt;th&lt;/SPAN&gt; &lt;SPAN class="na"&gt;... hidden="true"&lt;/SPAN&gt;&lt;SPAN class="s"&gt;&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;Column Name&lt;SPAN class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="nt"&gt;&lt;SPAN class="nt"&gt;&amp;lt;th&lt;/SPAN&gt; &lt;SPAN class="na"&gt;... hidden="false"&lt;/SPAN&gt;&lt;SPAN class="s"&gt;&lt;/SPAN&gt;&lt;SPAN class="nt"&gt;&amp;gt;&lt;/SPAN&gt;Column Name&lt;SPAN class="nt"&gt;&amp;lt;/th&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 19:50:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243783#M22561</guid>
      <dc:creator>YungKaiChin</dc:creator>
      <dc:date>2014-11-24T19:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a column in a dojox.grid.DataGrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243784#M22562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 12:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/hiding-a-column-in-a-dojox-grid-datagrid/m-p/243784#M22562</guid>
      <dc:creator>TONIFAIRBANKS</dc:creator>
      <dc:date>2014-11-25T12:52:47Z</dc:date>
    </item>
  </channel>
</rss>

