<?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 The event for Clicking a row of Grid Not fired in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040587#M72192</link>
    <description>&lt;P&gt;In my App, I create a FeatureTable that works with a FeatureLayer.&amp;nbsp; When the FeatureTable displays the data and the FeatureLayer is drawn on the Map.&amp;nbsp; I need to fire an event on clicking a row of the Grid, and retrieve the record's cells values.&amp;nbsp; Below is the related code.&amp;nbsp; However, when I click a row, nothing happens.&amp;nbsp; What's wrong with my code?&amp;nbsp; Thanks if you can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;myTable = new mv.esriModules.FeatureTable({&lt;BR /&gt;layer: myFeatureLayer,&lt;BR /&gt;visibleElements: { selectionColumn: true },&lt;BR /&gt;fieldConfigs: _fieldsConfig,&lt;BR /&gt;container: document.getElementById("tableDiv")&lt;BR /&gt;items: [{&lt;BR /&gt;label: "Zoom to feature(s)",&lt;BR /&gt;iconClass: "esri-icon-zoom-in-magnifying-glass",&lt;BR /&gt;clickFunction: function (event) { //&lt;BR /&gt;debugger;&lt;BR /&gt;//zoomToSelectedFeatureTable();&lt;BR /&gt;//console.log("Need to build zoomToSelectedFeatureTable function");&lt;BR /&gt;}&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;</description>
    <pubDate>Thu, 25 Mar 2021 13:49:14 GMT</pubDate>
    <dc:creator>ShaningYu</dc:creator>
    <dc:date>2021-03-25T13:49:14Z</dc:date>
    <item>
      <title>The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040587#M72192</link>
      <description>&lt;P&gt;In my App, I create a FeatureTable that works with a FeatureLayer.&amp;nbsp; When the FeatureTable displays the data and the FeatureLayer is drawn on the Map.&amp;nbsp; I need to fire an event on clicking a row of the Grid, and retrieve the record's cells values.&amp;nbsp; Below is the related code.&amp;nbsp; However, when I click a row, nothing happens.&amp;nbsp; What's wrong with my code?&amp;nbsp; Thanks if you can help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;myTable = new mv.esriModules.FeatureTable({&lt;BR /&gt;layer: myFeatureLayer,&lt;BR /&gt;visibleElements: { selectionColumn: true },&lt;BR /&gt;fieldConfigs: _fieldsConfig,&lt;BR /&gt;container: document.getElementById("tableDiv")&lt;BR /&gt;items: [{&lt;BR /&gt;label: "Zoom to feature(s)",&lt;BR /&gt;iconClass: "esri-icon-zoom-in-magnifying-glass",&lt;BR /&gt;clickFunction: function (event) { //&lt;BR /&gt;debugger;&lt;BR /&gt;//zoomToSelectedFeatureTable();&lt;BR /&gt;//console.log("Need to build zoomToSelectedFeatureTable function");&lt;BR /&gt;}&lt;BR /&gt;}]&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040587#M72192</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-03-25T13:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040613#M72193</link>
      <description>&lt;P&gt;It looks like you're configuring the FeatureTable incorrectly. You left off the menuConfig property for the items&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;myTable = new mv.esriModules.FeatureTable({
  layer: myFeatureLayer,
  visibleElements: { selectionColumn: true },
  fieldConfigs: _fieldsConfig,
  container: document.getElementById("tableDiv"),
  menuConfig: {
    items: [{
      label: "Zoom to feature(s)",
      iconClass: "esri-icon-zoom-in-magnifying-glass",
      clickFunction: function (event) { //
        debugger;
        //zoomToSelectedFeatureTable();
        //console.log("Need to build zoomToSelectedFeatureTable function");
      }
    }]
  }
});&lt;/LI-CODE&gt;&lt;P&gt;It would help if you use the Insert Code option when adding code.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:04:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040613#M72193</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-03-25T15:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040631#M72195</link>
      <description>&lt;P&gt;Dear Ken:&amp;nbsp; Thanks for your response.&amp;nbsp; I used your code, but it still does not fire.&amp;nbsp; Is there something still missin?&amp;nbsp; Thanks again.&lt;/P&gt;&lt;P&gt;myTable = new mv.esriModules.FeatureTable({&lt;BR /&gt;&amp;nbsp;layer: myFeatureLayer, visibleElements: { selectionColumn: true },&lt;BR /&gt;&amp;nbsp;fieldConfigs: _fieldsConfig,&lt;BR /&gt;&amp;nbsp;container: document.getElementById("tableDiv"),&lt;BR /&gt;&amp;nbsp;menuConfig: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;items: [{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;label: "Zoom to feature(s)",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;iconClass: "esri-icon-zoom-in-magnifying-glass",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;clickFunction: function (event) { //&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;debugger;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//zoomToSelectedFeatureTable();&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;}]&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:51:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040631#M72195</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-03-25T15:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040637#M72196</link>
      <description>&lt;P&gt;Dear Ken:&amp;nbsp; For the code below&lt;/P&gt;&lt;P&gt;this.gridTbl = $('#tableDiv');&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // the Grid container&lt;BR /&gt;this.gridTbl.click(function(e) {&lt;BR /&gt;&amp;nbsp; debugger;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;if I click a row of the grid, the event fire.&amp;nbsp; Is it possible to retrieve the row's value through the 'e'?&amp;nbsp; Through debugging, I can see some expected values (but not all).&amp;nbsp; Thanks if you can help.&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:03:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040637#M72196</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-03-25T16:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040668#M72198</link>
      <description>&lt;P&gt;That will give you information about the cell of the table you click on, but I'm not seeing anything about the row itself. Here's how to get the text of the cell&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;console.log(e.target.innerText);&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:45:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040668#M72198</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-03-25T16:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040670#M72199</link>
      <description>&lt;P&gt;That code refers to the context menu that you didn't want from your other &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/how-to-customize-the-featuretable/m-p/1038543#M72129" target="_self"&gt;thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040670#M72199</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-03-25T16:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040685#M72202</link>
      <description>&lt;P&gt;I did use&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN class="token selector"&gt;.esri-feature-table__menu .esri-button-menu&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;SPAN class="token property"&gt;display&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt;&lt;/FONT&gt;none&lt;FONT color="#000000"&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;through e.target.innerHTML, I can retrieve only the cell's value.&amp;nbsp; What I can retrieve the row's value?&amp;nbsp; Thanks for your help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:18:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040685#M72202</guid>
      <dc:creator>ShaningYu</dc:creator>
      <dc:date>2021-03-25T17:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040688#M72203</link>
      <description>&lt;P&gt;I don't know if that's possible. The FeatureTable widget is lacking in a few things.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040688#M72203</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-03-25T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: The event for Clicking a row of Grid Not fired</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040692#M72205</link>
      <description>&lt;P&gt;However, remember that you have the selection-changed event (from &lt;A href="https://community.esri.com/t5/arcgis-api-for-javascript/how-to-retrieve-the-values-of-a-row-of-the-grid/m-p/1039266#M72149" target="_self"&gt;this discussion&lt;/A&gt;) you can use.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/the-event-for-clicking-a-row-of-grid-not-fired/m-p/1040692#M72205</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-03-25T17:31:30Z</dc:date>
    </item>
  </channel>
</rss>

