<?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: Highlighting Graphics through a Gridview in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117094#M493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;testing shows that if I remove the layer from the map, set all (2500) graphics to selected and reload the map, it still takes very long (10-20) seconds to load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This makes me believe the way the graphic.Selected property is bound to the map makes it slow and Esri should perhaps consider a different approach. Any thoughts on this ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Apr 2013 16:23:33 GMT</pubDate>
    <dc:creator>BKuiper</dc:creator>
    <dc:date>2013-04-27T16:23:33Z</dc:date>
    <item>
      <title>Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117093#M492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as an extension on my question raised here "" &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/83195-(Rad)GridView-and-displaying-the-attributes-of-all-the-Graphics"&gt;(Rad)GridView and displaying the attributes of all the Graphics&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to highlight Graphics through a (rad)gridview, just as it is done in ArcMap. I have attached a screenshot as example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have achieved populating the Gridview by creating a datatable and populating the attributes as datacolumns and having a reference to the GraphicsLayer. I couldn't find a way to directly hook the GraphicsLayer into the Gridview, by using a DisplayMemberPath or something similar, to get to the Graphics and its underlying Attributes properties. So i had to create this DataTable structure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I want to make sure that on selection of a row in the DataGrid the Graphic is highlighted. This is working by getting the datarow from the selection and finding the column that holds the actual Graphic. Then I set Graphic.Selected = True. This works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i run into the problem when i want to do this for 2500 items at once (ctrl+A / select all, for example with a grid of data points as shown in the attachment). This takes forever to load and the UI will hang for 10 till 20 seconds before it returns and shows all the selected items. For completion, I'm using Accelerated Display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea on how i can improve the performance ? should I perhaps reconsider how the binding is done to the grid ? I don't think this will matter to much though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 20:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117093#M492</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2013-04-26T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117094#M493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;testing shows that if I remove the layer from the map, set all (2500) graphics to selected and reload the map, it still takes very long (10-20) seconds to load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This makes me believe the way the graphic.Selected property is bound to the map makes it slow and Esri should perhaps consider a different approach. Any thoughts on this ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Apr 2013 16:23:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117094#M493</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2013-04-27T16:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117095#M494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the graphics aren't bound to a FeatureDataGrid selection is very fast (I tested up to 3500) - so it's the binding between the GraphicsLayer and the FeatureDataGrid that introduces the delay (I saw approx. 9 seconds delay in when selecting all graphics either in the map or in the data grid).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can download the source code for the WPF FeatureDataGrid here - &lt;/SPAN&gt;&lt;A href="http://esrisilverlight.codeplex.com"&gt;http://esrisilverlight.codeplex.com&lt;/A&gt;&lt;SPAN&gt;. Perhaps there's a way to optimize the selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:20:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117095#M494</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-05-01T13:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117096#M495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure if i completely understand your comment. I'm currently not using the FeatureDataGrid. But you made a good point. I haven't looked at the source code of the FeatureDataGrid and will examine it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 12:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117096#M495</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2013-05-02T12:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117097#M496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think looking at the FeatureDataGrid will help much. I think the problem is probably overall WPF performance when calling ChangeVisualState on each Graphic when it is selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't get the performance you are referring too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 12:28:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117097#M496</guid>
      <dc:creator>BKuiper</dc:creator>
      <dc:date>2014-02-10T12:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Highlighting Graphics through a Gridview</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117098#M497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without a FeatureDataGrid (or other UI control bound to the graphics collection) selecting/unselecting 2500 graphics takes 0.1seconds on my machine (reasonably fast laptop).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With a FeatureDataGrid bound to the graphics collection this time increases significantly - I am investigating further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What datagrid-style control are you using? Can you provide a reproducer app?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 14:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/highlighting-graphics-through-a-gridview/m-p/117098#M497</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2014-02-10T14:46:52Z</dc:date>
    </item>
  </channel>
</rss>

