<?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: Zoom to records latitude and longitude in enhanced datagrid in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707469#M65827</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your post first option is not working because you are working off the click event of the button and as it stands it does not know the rowIndex. It would know the rowIndex if the event it was working off of was the rowclick event. In your last post are you saying when you un-comment the var lon = gridStores.store.getValues(selectedItem, "WebLon_X"); then you actually get the proper value in the alert? If so then the issue maybe that the value you are getting is a string and you need to parse it to a float.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14132129012075617" jivemacro_uid="_14132129012075617" modifiedtitle="true"&gt;
&lt;P&gt;lon = parseFloat(gridStores.store.getValues(selectedItem, "WebLon_X"));&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 15:08:46 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2014-10-13T15:08:46Z</dc:date>
    <item>
      <title>Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707465#M65823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've looked at all of the examples and I've tried two different ways to zoom to a record in a data grid but I am failing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Choice one is to do it as a zoom button in the table but I can not seem to get find the row index!&amp;nbsp; See bolded lines below.&amp;nbsp; . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;table&amp;nbsp; data-dojo-type="dojox.grid.EnhancedGrid" style="height:50px;" jsid="gridStores" id="gridStores" selectionMode="single" data-dojo-props="plugins:{exporter:true, printer:true}"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;thead&amp;gt;&amp;lt;tr&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="FID" formatter="makeZoomButton" width="30px"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img alt="+" src="assets/images/GenericSearch32.png" height="20" width="20"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/th&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="WebLon_X" width="100px"&amp;gt;WebLon_X&amp;lt;/th&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="WebLat_Y" width="150px"&amp;gt;WebLat_Y&amp;lt;/th&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;lt;/thead&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function makeZoomButton(id){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var zBtn = "&amp;lt;div data-dojo-type='dijit.form.Button'&amp;gt;&amp;lt;img src='assets/images/GenericSearch32.png'";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zBtn = zBtn + " width='18' height='18'";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zBtn = zBtn + " onClick=\"zoomRow('"+id+"')\"&amp;gt;&amp;lt;/div&amp;gt;";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return zBtn;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function zoomRow(evt){&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; // var lon= gridStores.getItem(&lt;EM&gt;evt.rowIndex&lt;/EM&gt;).WebLon_X;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; // var lat= gridStores.getItem(&lt;EM&gt;evt.rowIndex&lt;/EM&gt;).WebLat_Y;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var lon = gridStores.store.getValue(gridStores.getItem(&lt;EM&gt;evt.rowIndex&lt;/EM&gt;), "WebLon_X");&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;var lat= gridStores.store.getValue(gridStores.getItem(&lt;EM&gt;evt.rowIndex&lt;/EM&gt;), "WebLat_Y");&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//--This works if I know row number/index !!!!!&lt;/P&gt;&lt;P&gt;//var lon = gridStores.store.getValue(gridStores.getItem(3), "WebLon_X");&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;//var lat= gridStores.store.getValue(gridStores.getItem(3), "WebLat_Y");&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; alert("Current Row Index = " + currentRowIndex);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var lon = gridStores.store.getValue(gridStores.getItem(currentRowIndex), "WebLon_X");&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt;map.centerAndZoom(new esri.geometry.Point( lon, lat, map.spatialReference),12); &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Choice two was to try and to this on a double click but not sure how well that will work with tablet devices.&amp;nbsp; I can get cell value but when I use it my zoom does not work ;-(&amp;nbsp; I am guess formatting because if I hard code it everything seems to work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function onRowDblClickHandler(evt){&lt;BR /&gt;if (confirm('Do you wish to zoom to this record?')) {&lt;/P&gt;&lt;P&gt;var items = gridStores.selection.getSelected();&lt;BR /&gt;if (items.length) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(items, function(selectedItem) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lon = gridStores.store.getValues(selectedItem, "WebLon_X");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat = gridStores.store.getValues(selectedItem, "WebLat_Y"); &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //var lon = -12838746.49378;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //var lat = 4321278.26719;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; alert("lon = " + lon + "&amp;nbsp;&amp;nbsp; lat = " + lat);&lt;BR /&gt;&amp;nbsp; map.centerAndZoom(new esri.geometry.Point("" +lon+ "", "" + lat + "", map.spatialReference),12); &lt;BR /&gt; &lt;BR /&gt;}&lt;BR /&gt;// --- end&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 17:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707465#M65823</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-10T17:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707466#M65824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what jake posted earlier, maybe this will help: &lt;A href="http://jsfiddle.net/td2htn7q/2/" title="http://jsfiddle.net/td2htn7q/2/"&gt;Edit fiddle - JSFiddle&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 18:07:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707466#M65824</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2014-10-10T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707467#M65825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response.&amp;nbsp; I'm looking through that example which is pretty interesting but much of that has to do with graphics.&amp;nbsp; It is also I'm just not up to speed enough in JavaScript to tweak that code to what I need as well.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 18:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707467#M65825</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-10T18:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707468#M65826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; When I hard code the values everything works fine but when I grab them out of the table they look the same in my alert box but do not work.&amp;nbsp; Augh.&amp;nbsp; Any ideas why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="WebLon_X" width="100px" datatype="string"&amp;gt;WebLon_X&amp;lt;/th&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="WebLat_Y" width="150px" datatype="string"&amp;gt;WebLat_Y&amp;lt;/th&amp;gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (confirm('Do you wish to zoom to this record?')) {&lt;BR /&gt;var items = gridStores.selection.getSelected();&lt;BR /&gt;if (items.length) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(items, function(selectedItem) {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // This works when hard coded&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var lon = -8266572.952;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var lat = 4995971.321;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Why is this not working.&amp;nbsp; I am getting the same exact values in my alert box?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // var lon = gridStores.store.getValues(selectedItem, "WebLon_X");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //var lat = gridStores.store.getValues(selectedItem, "WebLat_Y"); &lt;/P&gt;&lt;P&gt;&amp;nbsp; alert("lon = " + lon + "&amp;nbsp;&amp;nbsp; lat = " + lat);&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.centerAndZoom(new esri.geometry.Point( lon, lat , map.spatialReference), 12); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; })&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 11:19:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707468#M65826</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-13T11:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707469#M65827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Your post first option is not working because you are working off the click event of the button and as it stands it does not know the rowIndex. It would know the rowIndex if the event it was working off of was the rowclick event. In your last post are you saying when you un-comment the var lon = gridStores.store.getValues(selectedItem, "WebLon_X"); then you actually get the proper value in the alert? If so then the issue maybe that the value you are getting is a string and you need to parse it to a float.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14132129012075617" jivemacro_uid="_14132129012075617" modifiedtitle="true"&gt;
&lt;P&gt;lon = parseFloat(gridStores.store.getValues(selectedItem, "WebLon_X"));&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 15:08:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707469#M65827</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-13T15:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707470#M65828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm passing on the id to this function.&amp;nbsp; Can I use that to get the rowindex or can I pass the rowindex instead of the id?&amp;nbsp; Would be really nice to be able to use the zoom button for the row. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;th field="FID" formatter="makeZoomButton" width="30px"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;img alt="+" src="assets/images/GenericSearch32.png" height="20" width="20"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/th&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function makeZoomButton(id){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var zBtn = "&amp;lt;div data-dojo-type='dijit.form.Button'&amp;gt;&amp;lt;img src='assets/images/GenericSearch32.png'";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zBtn = zBtn + " width='18' height='18'";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; zBtn = zBtn + " onClick=\"zoomRow('"+id+"')\"&amp;gt;&amp;lt;/div&amp;gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return zBtn;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function zoomRow(evt){&lt;/P&gt;&lt;P&gt;&amp;nbsp; alert("FID for Selected Row = " + evt);&amp;nbsp; &lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 16:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707470#M65828</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-13T16:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707471#M65829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The way I would do it, (based on my limited knowledge of working with a grid or enhanced grid) is instead of adding an actual button just add an image using the GenericSearch32.png and then use the grid.on("rowclick", onRowClickHandler); instead so that you can get the actual rowclick event and then use the evt.grid.getItem(evt.rowIndex).WebLon_X;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 17:45:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707471#M65829</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-13T17:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707472#M65830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the rowclick working thanks to your help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was kind of hoping to get the search icon to work as I just thought that was a more user friendly way to go with this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and have a great day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 17:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707472#M65830</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-10-13T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Zoom to records latitude and longitude in enhanced datagrid</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707473#M65831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This &lt;A href="http://jsbin.com/ror/3/edit"&gt;example&lt;/A&gt; uses an icon on the web (which appears to be down right now) in a grid where the user can click to zoom.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 18:22:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/zoom-to-records-latitude-and-longitude-in-enhanced/m-p/707473#M65831</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-10-14T18:22:26Z</dc:date>
    </item>
  </channel>
</rss>

