<?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: DataGrid hide? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173697#M16106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am now trying to zoom to searched graphics (below)&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function showResults(results) { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This function works with an array of FindResult that the task returns 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5])); 
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create Extent to use for view an area containing all the search results
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var SearchAreaExtent;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create array of attributes 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dojo.map(results,function(result){ 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(symbol); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add Extent to Search Area Extent
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (SearchAreaExtent) SearchAreaExtent = SearchAreaExtent.union(graphic.geometry.getExtent());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else SearchAreaExtent = graphic.geometry.getExtent();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.feature.attributes; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/PRE&gt;&lt;SPAN&gt;, but it currently doesn't recognize the map extent following resize of the map and datagrid with:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.style(dojo.byId("map"), "height", "75%");&lt;/PRE&gt;&lt;SPAN&gt; Is it possible to use 'onExtentChange' function on resizing the map as such?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 08:59:03 GMT</pubDate>
    <dc:creator>BarryGuidry</dc:creator>
    <dc:date>2021-12-11T08:59:03Z</dc:date>
    <item>
      <title>DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173690#M16099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am compiling the sample DataGrid &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/find_map_datagrid.html"&gt;here&lt;/A&gt;&lt;SPAN&gt; to my web application, but wonder if it is possible to hide the DataGrid until a search is performed, and then a 'close' function on the DataGrid as well?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 15:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173690#M16099</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2012-08-09T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173691#M16100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may want to have the datagrid inside a FloatingPane,&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.html"&gt;http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And you can always make any element hidden/visible,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex: dojo.byId('grid').style.visibility = 'visible';&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 22:41:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173691#M16100</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2012-08-09T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173692#M16101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You may want to have the datagrid inside a FloatingPane,&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.html"&gt;http://dojotoolkit.org/reference-guide/1.7/dojox/layout/FloatingPane.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;And you can always make any element hidden/visible,&lt;BR /&gt;Ex: dojo.byId('grid').style.visibility = 'visible';&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Thanks Rama. Your second solution does hide the grid table, but I would also like to hide the entire contentPane (this a div tag in the html section), in which the datagrid resides, and have the map resize to shrink/grow, based on the search button selection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 17:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173692#M16101</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2012-08-14T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173693#M16102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I can make the datagrid hidden when the map loads by using &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esri.hide(MyContentPane);&lt;/PRE&gt;&lt;SPAN&gt; then appears by inserting &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;esri.show(MyContentPane);&lt;/PRE&gt;&lt;SPAN&gt;after the "on-click" event, and again hides when selecting the row source in the datagrid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I need to figure out now is how to have the map resize, as if the bottom ContentPane didn't even exist (as a &amp;lt;div&amp;gt; tag). Any idea how to modify the code to make the map resize when the browser is resized? &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;map.resize(map)&lt;/PRE&gt;&lt;SPAN&gt;This (above) snippet does the job of resizing the map (center pane) after hiding the contentPane, but does not load the map data. Or, is there a better way to accomplish this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 19:27:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173693#M16102</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2012-08-15T19:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173694#M16103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't quite got this working because I don't have the syntax right on the "open part of the grid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have my collapse function as &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; function collapseList() {
&amp;nbsp; dojo.byId("rightPane").style.display = 'none';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.style(dojo.byId("mapDiv"), "width", "100%");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dijit.byId("mapDiv").resize();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.resize();
&amp;nbsp;&amp;nbsp;&amp;nbsp; map.reposition();
 &lt;/PRE&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This did both hide the pane where my grid was loaded as well as expand my map to fill the screen.&amp;nbsp; Now all I have to do is find the opposite of .style.display = 'none' and find a better place to put my 'hide' and 'show' buttons.&amp;nbsp; I'm thinking I want to style them with an image of &amp;lt;&amp;lt; and &amp;gt;&amp;gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173694#M16103</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2021-12-11T08:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173695#M16104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I can get some use from that. Thanks, Tracy. But, the remaining problem I have is a header div tag, a center div tag (the map), and a bottom div tag (a footer w/links), and a rightpane div tag (the legend). Is there another section I can use a div tag for the datagrid, to place between the map and footer (center &amp;amp; bottom panes)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would prefer a javascript event that would simply remove the datagrid &amp;lt;div&amp;gt; rather than hide it, and then re-add it with an 'onclick' event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 20:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173695#M16104</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2012-08-23T20:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173696#M16105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, I got it figured out now, after reading the information about using "layoutPriority" &lt;/SPAN&gt;&lt;A href="http://livedocs.dojotoolkit.org/dijit/layout/BorderContainer#regions" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt;. Being that both my datagrid and footer information are both in the "bottom" region, I had to set the layoutPriority of the two so that the datagrid will draw above the footer (which was just the opposite, by default, without any layoutPriority properties). Then, upon the function (init) I hide the datagrid and manually resize the map's height (as a percentage).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code 1:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esri.hide(datagrid); 
dojo.style(dojo.byId("map"), "height", "93%");&lt;/PRE&gt;&lt;SPAN&gt;Then, upon a click of a Search button, I have it do just the opposite of the code above, displaying the datagrid and resizing the map again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Code 2:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;esri.show(datagrid); 
dojo.style(dojo.byId("map"), "height", "77%");&lt;/PRE&gt;&lt;SPAN&gt;Then, after the user selects a row source in the datagrid I have it simply repeat "Code 1", above.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173696#M16105</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2021-12-11T08:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: DataGrid hide?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173697#M16106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am now trying to zoom to searched graphics (below)&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function showResults(results) { 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //This function works with an array of FindResult that the task returns 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.clear(); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NULL, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([98,194,204]), 2), new dojo.Color([98,194,204,0.5])); 
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create Extent to use for view an area containing all the search results
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var SearchAreaExtent;
 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create array of attributes 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dojo.map(results,function(result){ 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(symbol); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add Extent to Search Area Extent
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (SearchAreaExtent) SearchAreaExtent = SearchAreaExtent.union(graphic.geometry.getExtent());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else SearchAreaExtent = graphic.geometry.getExtent();
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return result.feature.attributes; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }); &lt;/PRE&gt;&lt;SPAN&gt;, but it currently doesn't recognize the map extent following resize of the map and datagrid with:&lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.style(dojo.byId("map"), "height", "75%");&lt;/PRE&gt;&lt;SPAN&gt; Is it possible to use 'onExtentChange' function on resizing the map as such?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:59:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datagrid-hide/m-p/173697#M16106</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2021-12-11T08:59:03Z</dc:date>
    </item>
  </channel>
</rss>

