This project is read-only.
1

Closed

FeatureDataGrid throws error when bound to GraphicsLayer containing previously used graphic/feature

description

The FeatureDataGrid class internally generates new types for each new graphic/feature it is asked to display. During that process, it also creates a list of the graphic's fields. If the FeatureDataGrid.GraphicsLayer is changed to a layer containing a graphic the class has seen before, it skips this generation and reuses one it has stored. The problem arises in that the FeatureDataGrid will use the last of fields used and if the fields have changed, an error is thrown. I've attached a text file of the error message. Recreating the FeatureDataGrid in code cannot work around this as the graphic's generated type is stored in a static history.
 
I have developed a patch that basically mimics the generated type's behavior and keeps a history of fields so they can be reused when a graphic's type is reused. This patch will be submitted shortly.

file attachments

Closed Apr 7, 2010 at 6:09 PM by mnielsen

comments

wrote Apr 7, 2010 at 6:09 PM

Resolved with changeset 49914.

wrote Feb 21, 2013 at 11:45 PM

wrote May 16, 2013 at 11:25 AM

wrote Dec 9, 2017 at 9:29 AM