<?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 custom class for datagrid - how do I update datagrid once the dataprovider changes? in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-class-for-datagrid-how-do-i-update-datagrid/m-p/461323#M10607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a custom class for a datagrid based on the outFields specified in a featurelayer.&amp;nbsp; I want to add listeners for the change event on the map and only populate the grid with the features in the current map extent.&amp;nbsp; The datagrid comes up in a TitleWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine for the initial load.&amp;nbsp; If I'm zoomed in, only those features in the extent are loaded into the grid.&amp;nbsp; When I pan/zoom, the extent change handler, onExtentChange runs.&amp;nbsp; A new arrayCollection is created based on what is in the current map extent and defined as the new dataprovider to the grid.&amp;nbsp; This arrayCollection has the right elements in it.&amp;nbsp; I can't get the datagrid to use this new AC as the dataprovider!&amp;nbsp; I've tried defining the ArrayCollection at the start and I've tried creating a new one within the function.&amp;nbsp; I'm not sure that makes any difference, but I'm trying all sorts of things at this point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried refreshing the arraycollection.&amp;nbsp; I've tried invalidateList.&amp;nbsp; I've tried firing a dispatchevent on the collection change of the arraycollection.&amp;nbsp; Nothing changes the display.&amp;nbsp; I'm not sure what else to even try!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I search the forums, all I find are the last questions I've posted&amp;nbsp; myself on syncing datagrid to map extents.&amp;nbsp; I guess not many people are trying to do this?!&amp;nbsp; I&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Dec 2011 18:33:33 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2011-12-05T18:33:33Z</dc:date>
    <item>
      <title>custom class for datagrid - how do I update datagrid once the dataprovider changes?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-class-for-datagrid-how-do-i-update-datagrid/m-p/461323#M10607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a custom class for a datagrid based on the outFields specified in a featurelayer.&amp;nbsp; I want to add listeners for the change event on the map and only populate the grid with the features in the current map extent.&amp;nbsp; The datagrid comes up in a TitleWindow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine for the initial load.&amp;nbsp; If I'm zoomed in, only those features in the extent are loaded into the grid.&amp;nbsp; When I pan/zoom, the extent change handler, onExtentChange runs.&amp;nbsp; A new arrayCollection is created based on what is in the current map extent and defined as the new dataprovider to the grid.&amp;nbsp; This arrayCollection has the right elements in it.&amp;nbsp; I can't get the datagrid to use this new AC as the dataprovider!&amp;nbsp; I've tried defining the ArrayCollection at the start and I've tried creating a new one within the function.&amp;nbsp; I'm not sure that makes any difference, but I'm trying all sorts of things at this point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried refreshing the arraycollection.&amp;nbsp; I've tried invalidateList.&amp;nbsp; I've tried firing a dispatchevent on the collection change of the arraycollection.&amp;nbsp; Nothing changes the display.&amp;nbsp; I'm not sure what else to even try!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I search the forums, all I find are the last questions I've posted&amp;nbsp; myself on syncing datagrid to map extents.&amp;nbsp; I guess not many people are trying to do this?!&amp;nbsp; I&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 18:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/custom-class-for-datagrid-how-do-i-update-datagrid/m-p/461323#M10607</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2011-12-05T18:33:33Z</dc:date>
    </item>
  </channel>
</rss>

