Select to view content in your preferred language

FeatureDataGrid 2.2 Api Very Slow

794
1
06-24-2011 04:48 AM
ChrisSmith
Emerging Contributor
Hi

Have just upgraded a project to v 2.2 of the Silverlight API and appear to have a performance issue with the featuredatagrid.

My data layer of approx 4000 points in 2.1 would draw reasonably quickly after applying what I have mentioned in this post http://forums.arcgis.com/threads/33221-FeatureLayer-slow-on-Update%28%29 and the FeatureDataGrid would load the data quickly (no noticeable delay)

I have upgraded to 2.2 and now the featurelayer takes 4 minutes 31 seconds to load when a featuredatagrid is bound to it, there is no issue if no featuredatagrid is bound.

Is there some new functionality/setting that I am missing for the featuredatagrid,
or is it unrealistic to draw 4000 points in a featurelayer?

Thanks

Chris
0 Kudos
1 Reply
ChrisSmith
Emerging Contributor
Stepping through the code I have found that if my Outfields on the featurelayer dont match the fields in the LayerInfo then the code takes an extra 4 mins 27 seconds to run.

Options are rebuild the FeatureDataGrid code with some changes or set my OutFields property ="*"

problem line of code is...

if (!AllAttributesMatch(enumItemsSource.Current.GetType().GetProperties(), (e.NewItems[0] as Graphic).Attributes))
                                shouldResetItemsSource = true;
0 Kudos