<?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: Populate dataGrid with Query Results in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659631#M61592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as running the dojo parser again I'm not positive.&amp;nbsp; Maybe someone with more knowledge with dojo can answer that.&amp;nbsp; I am interested in your suggestion.&amp;nbsp; How would I go about creating the dataGrid programmatically and placing it in the DOM?&amp;nbsp; Do you have any examples of what you are suggesting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 14:48:05 GMT</pubDate>
    <dc:creator>DonCaviness</dc:creator>
    <dc:date>2012-08-17T14:48:05Z</dc:date>
    <item>
      <title>Populate dataGrid with Query Results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659629#M61590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to populate a dataGrid with results from a query and I've run into an issue.&amp;nbsp; I have used the sample &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_zoomgrid.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/demos/fl/fl_zoomgrid.html&lt;/A&gt;&lt;SPAN&gt; and have been able to get it to work as a stand alone sample, however that doesn't help with my project.&amp;nbsp; In my project I am dynamically creating the html table that will be the dataGrid:&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;html += '&amp;lt;div id="bufferResultsDiv" data-dojo-type="dijit.layout.ContentPane" class="Pad" style="Display: none;"&amp;gt;';
 html += '&amp;lt;table data-dojo-type="dojox.grid.DataGrid" data-dojo-id="grid"&amp;nbsp; id="grid" data-dojo-props="rowsPerPage:"5", rowSelector:"20px"&amp;gt;';
&amp;nbsp; html += '&amp;lt;thead&amp;gt;';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;tr&amp;gt;';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;th field="parcel_f" width="100%"&amp;gt;Parcel #&amp;lt;/th&amp;gt;';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;th field="name1" width="100%"&amp;gt;Name&amp;lt;/th&amp;gt;';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html += '&amp;lt;/tr&amp;gt;';
&amp;nbsp; html += '&amp;lt;/thead&amp;gt;';
 html += '&amp;lt;/table&amp;gt;';
html += '&amp;lt;/div&amp;gt;';
$('#parcelSearchControls').html(html);&lt;/PRE&gt;&lt;SPAN&gt; I get an error saying that .setStore is not a function at this line: &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;grid.setStore(store);&lt;/PRE&gt;&lt;SPAN&gt; I have tried declare the grid multiple ways: &lt;/SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var grid = dijit.byId('grid');
var grid = dojo.byId('grid');
var grid = $("#grid");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any suggestions on what I can do to populate my dataGrid?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659629#M61590</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2021-12-12T03:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dataGrid with Query Results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659630#M61591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't tend to inject HTML this way when creating dijits but just a guess, do you need to run the dojo parser over the newly injected markup to get it to create the DataGrid dijit?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, why not just create the grid programmatically and place it in the DOM?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 10:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659630#M61591</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-17T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dataGrid with Query Results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659631#M61592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As far as running the dojo parser again I'm not positive.&amp;nbsp; Maybe someone with more knowledge with dojo can answer that.&amp;nbsp; I am interested in your suggestion.&amp;nbsp; How would I go about creating the dataGrid programmatically and placing it in the DOM?&amp;nbsp; Do you have any examples of what you are suggesting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 14:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659631#M61592</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2012-08-17T14:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dataGrid with Query Results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659632#M61593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;As far as running the dojo parser again I'm not positive.&amp;nbsp; Maybe someone with more knowledge with dojo can answer that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're dynamically injecting markup containing dojo widgets into the page post rendering and after (if you set parseOnLoad:true) the parser has already run then how would it know about your new widget?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggest you have a read here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojo/parser.html#dojo-parser"&gt;dojo-parser&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am interested in your suggestion.&amp;nbsp; How would I go about creating the dataGrid programmatically and placing it in the DOM?&amp;nbsp; Do you have any examples of what you are suggesting?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a programmatic example here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://dojotoolkit.org/reference-guide/1.7/dojox/grid/DataGrid.html#dojox-grid-datagrid"&gt;dojox-grid-datagrid&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(note that this grid has been deprecated in favour of dgrid)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 08:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659632#M61593</guid>
      <dc:creator>__Rich_</dc:creator>
      <dc:date>2012-08-20T08:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Populate dataGrid with Query Results</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659633#M61594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the suggestion.&amp;nbsp; However, I had already figured it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 15:23:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/populate-datagrid-with-query-results/m-p/659633#M61594</guid>
      <dc:creator>DonCaviness</dc:creator>
      <dc:date>2012-08-20T15:23:39Z</dc:date>
    </item>
  </channel>
</rss>

