<?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: dojox.grid.DataGrid - how to clear results in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23481#M2055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shuping, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for this post! I have been trying to figure out how to do this for weeks and this works perfectly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Mar 2012 18:44:15 GMT</pubDate>
    <dc:creator>BenjaminZank1</dc:creator>
    <dc:date>2012-03-16T18:44:15Z</dc:date>
    <item>
      <title>dojox.grid.DataGrid - how to clear results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23479#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm after help how to write a bit of JS that will clear both map graphics and a dojo datagrid on an onclick map event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the syntax for clearing a map graphic is - map.graphics.clear(); but i dont or cant find how to clear the search results showing in a datagrid; and if indeed it is possible to clear a datagrid, how i structure the JS to add the two bits of code together in a onclick, show a popup infowindow function event. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alternatively and probably the better soultion. After doing a search via a grid.datagrid function and zooming to my feature; how to write an onclick event to show an infowindow, but remove all the map graphics but in doing the map.graphic.clear not disconnecting the results in the datagrid, so that I can continue to select a result and zoom off to it. As its stands, if i add a map.graphic.clear to my function that does the popup infowindow, it clears all the map graphics from my search, however the search results remain in the datagrid but dont zoom off to the feature anymore. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyhow, any help would be great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 09:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23479#M2053</guid>
      <dc:creator>simonmiles</dc:creator>
      <dc:date>2011-09-09T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.grid.DataGrid - how to clear results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23480#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use the following solution to clear the DataGrid. Basically, create a new empty store for the grid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; 
 var newStore = new dojo.data.ItemFileReadStore({data: {&amp;nbsp; identifier: "",&amp;nbsp; items: []}});
&amp;nbsp;&amp;nbsp;&amp;nbsp; var grid = dijit.byId("grid");
&amp;nbsp;&amp;nbsp;&amp;nbsp; grid.setStore(newStore);
 }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23480#M2054</guid>
      <dc:creator>SiqiLi</dc:creator>
      <dc:date>2021-12-10T20:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: dojox.grid.DataGrid - how to clear results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23481#M2055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shuping, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for this post! I have been trying to figure out how to do this for weeks and this works perfectly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 18:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojox-grid-datagrid-how-to-clear-results/m-p/23481#M2055</guid>
      <dc:creator>BenjaminZank1</dc:creator>
      <dc:date>2012-03-16T18:44:15Z</dc:date>
    </item>
  </channel>
</rss>

