<?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: Synchronizing map and data grid interaction? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120313#M11230</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe if you had a field called "id", you wouldn't have to specify an idProperty, it would find it by default.&amp;nbsp; Since we typically have OBJECTID as the unique ID number, it has to be explicitly defined as the idProperty.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Oct 2015 14:22:56 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2015-10-14T14:22:56Z</dc:date>
    <item>
      <title>Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120303#M11220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This great article by esri's ArcGIS JS API guru, Kelly Hutchins: &lt;A href="http://blogs.esri.com/esri/arcgis/2010/01/15/synchronizing-map-and-data-grid-interaction-with-the-arcgis-api-for-javascript/" title="http://blogs.esri.com/esri/arcgis/2010/01/15/synchronizing-map-and-data-grid-interaction-with-the-arcgis-api-for-javascript/"&gt;Synchronizing map and data grid interaction with the ArcGIS API for JavaScript | ArcGIS Blog, &lt;/A&gt; explains how to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Hover over map graphics and highlight the associated row.&lt;/LI&gt;&lt;LI&gt;Hover over rows in the table and highlight the associated graphic.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Using the dojox DataGrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the dgrid/OnDemandGrid and would really love to know how to this exact thing with the dgrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 20:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120303#M11220</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-01T20:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120304#M11221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a sample that shows how to do some of this: &lt;A href="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html" title="https://developers.arcgis.com/javascript/jssamples/fl_dgrid.html"&gt;dgrid | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't include highlighting a feature when you mouse over the grid, but that's easy to add. The dGrid has &lt;A href="https://github.com/SitePen/dgrid/blob/v0.3.15/doc/components/utilities/mouse.md"&gt;mouse utilities&lt;/A&gt; you can use to control what happens when you mouse over or out of a header, cell, or row.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:08:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120304#M11221</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-10-01T21:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120305#M11222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have had some problems with getting the row to highlight in the grid.&amp;nbsp; Depending on the number of records you have, you may or may not be able to scroll to or highlight the corresponding row.&amp;nbsp; It has to do with the fact that all the data isn't truly pushed to the display until you use the scrollbar to see additional records in your grid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Oct 2015 21:47:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120305#M11222</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-01T21:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120306#M11223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example of what I'm talking about.&amp;nbsp;&amp;nbsp; The grid in the sidebar is tied to the map extent.&amp;nbsp; When the map is zoomed out, the grid isn't able to find the element in the list.&amp;nbsp; If you zoom in tighter, then the element is found and the grid scrolls to it.&amp;nbsp; I haven't found a workaround for that yet.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://jsbin.com/denigolehe/edit?html,output" title="https://jsbin.com/denigolehe/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120306#M11223</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-05T15:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120307#M11224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tracy, have you look at incorporating this into your script? &lt;A href="http://dgrid.io/tutorials/0.3/single_query/" title="http://dgrid.io/tutorials/0.3/single_query/"&gt;Rendering All Store Data at Once - dgrid Tutorial&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120307#M11224</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-10-05T16:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120308#M11225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did, but I'll look at it again.&amp;nbsp; I tried several things at the time I first wrote this sample and nothing worked well once I had a larger data set.&amp;nbsp; It does specifically say it doesn't work for a large data set (whatever 'large' is).&amp;nbsp;&amp;nbsp; This data set has a few hundred records, so it's not crazy huge.&amp;nbsp;&amp;nbsp; I'm using OnDemandGrid, not dGrid, so I'm not sure this example works the same way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 18:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120308#M11225</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-05T18:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120309#M11226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use of the &lt;A href="https://github.com/SitePen/dgrid/blob/dev-0.3/doc/components/core-components/OnDemandList-and-OnDemandGrid.md"&gt;OnDemandGrid&lt;/A&gt; is why it doesn't load all the data at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;OnDemandList extends List to provide on-demand lazy loading of data as the user scrolls through the list. (OnDemandGrid is simply the composition of Grid and OnDemandList)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120309#M11226</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2015-10-05T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120310#M11227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hard time keeping track of the 2.&amp;nbsp; I lose track of what is getting used in the various tutorials.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:12:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120310#M11227</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-05T19:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120311#M11228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I found that example but it is very simplified and does not work in my situation.&lt;/P&gt;&lt;P&gt;Here is what I do: I draw a polygon around FeatureLayer points, they get selected, their symbol changes (they are not graphics), and records appear in my dGrid. Now I want to click a record in my dGrid table and have that corresponding point highlighted. Can't seem to find how to do this. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 14:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120311#M11228</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2015-10-06T14:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120312#M11229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the data gets loaded in you include idProperty: "OBJECTID" in the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;//Pass the data to the grid
&amp;nbsp; var memStoreTS = new Memory({
&amp;nbsp; data: dataTS,
&amp;nbsp; idProperty: "OBJECTID"
&amp;nbsp; });
&amp;nbsp; gridStations.set("store", memStoreTS);&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:00:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120312#M11229</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2021-12-11T07:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120313#M11230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe if you had a field called "id", you wouldn't have to specify an idProperty, it would find it by default.&amp;nbsp; Since we typically have OBJECTID as the unique ID number, it has to be explicitly defined as the idProperty.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Oct 2015 14:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120313#M11230</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-10-14T14:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Synchronizing map and data grid interaction?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120314#M11231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to this earlier post &lt;A _jive_internal="true" href="https://community.esri.com/thread/92368" target="_blank"&gt;https://community.esri.com/thread/92368&lt;/A&gt; from someone who was trying to do exactly what I was going for, I found a nice solution to syncing my dgrid and corresponding data. Code in the above post from Esri's @Johnathan Uihlein was the ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I select a set of points by buffer or drawing tool, results in a dgrid, then want to click a dgrid row and see that point highlighted in my map. Here is the code that makes it work after selection.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gridMydGrid.on(".field-OBJECTID:click", selectPoint);


&amp;nbsp; function selectPoint(e) {
&amp;nbsp; // select the feature&amp;nbsp; 
&amp;nbsp; var fl = map.getLayer("FLName");
&amp;nbsp; var features = fl.getSelectedFeatures();
&amp;nbsp; var symbol = fl.getSelectionSymbol();
&amp;nbsp; var id = parseInt(e.target.innerHTML);


&amp;nbsp; var selectedGraphic;
&amp;nbsp; array.forEach(features, function (feature) {
&amp;nbsp; if (feature.attributes.OBJECTID === id) {
&amp;nbsp; selectedGraphic = feature;
&amp;nbsp; }
&amp;nbsp; feature.setSymbol(symbol);
&amp;nbsp; });


&amp;nbsp; var mySymbol = new SimpleMarkerSymbol().setOutline(null).setColor("#0000FE").setSize("20");
&amp;nbsp; selectedGraphic.setSymbol(mySymbol);


&amp;nbsp; var mp1A = selectedGraphic.geometry;
&amp;nbsp; map.centerAndZoom(mp1A, 16);
&amp;nbsp; }&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:00:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/synchronizing-map-and-data-grid-interaction/m-p/120314#M11231</guid>
      <dc:creator>DavidChrest</dc:creator>
      <dc:date>2021-12-11T07:00:16Z</dc:date>
    </item>
  </channel>
</rss>

