This project is read-only.
1
Vote

Feature Data Grid does not display rows containing null values since version 2.2

description

Since Version 2.2 the feature data grid does not display rows containing null values anymore. A Silverlight error is raised instead:
 
Unhandled Error in Silverlight Application All rows must be of type 'System.Nullable1[System.Double]' for the 'DiffPct' attribute. at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.AllAttributesMatch(PropertyInfo[] itemsSourceProperties, IDictionary2 graphicAttributes)
at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.UpdateItemsSource(Object sender, NotifyCollectionChangedEventArgs e)
at ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.Graphics_CollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.Specialized.NotifyCollectionChangedEventHandler.Invoke(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection
1.InsertItem(Int32 index, T item)
at ESRI.ArcGIS.Client.GraphicCollection.InsertItem(Int32 index, Graphic item)
at System.Collections.ObjectModel.Collection`1.Add(T item)
at ESRI.ArcGIS.Client.FeatureLayer.addGraphic(Graphic g)
at ESRI.ArcGIS.Client.FeatureLayer.task_QueryComplete(Object sender, QueryEventArgs args)
at ESRI.ArcGIS.Client.Tasks.QueryTask.OnExecuteCompleted(QueryEventArgs args)
at ESRI.ArcGIS.Client.Tasks.QueryTask.<>c__DisplayClass6.<request_Completed>b__4(FeatureSet fs, Exception ex)
at ESRI.ArcGIS.Client.Tasks.FeatureSet.<>c__DisplayClass2.<FromJsonAsync>b__0(Object s, RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.<OnRun>b__1(Object state)
 
An example of a typical Binding of type DataGridTextColumn is this one:
<my:DataGridTextColumn Binding="{Binding PREVIOUS, TargetNullValue=0, StringFormat={0:0\,0}}" Header="Last year exposure" CanUserSort="True" />
 
Prior to toolkit version 2.2 it would just work.

comments

anastasiaaourik wrote Jan 15, 2013 at 12:43 AM

When will this issue be resolved?

wrote Feb 21, 2013 at 11:45 PM