Good afternoon.
I have some XAML that worked fine with release 2011.1.502.35, but I want to upgrade to the latest version (2011.3.11.16.0).
Unfortunately, I have a number of GridViews with GridViewDataColumn fields bound to nullable DateTime fields like this -
When I load up a grid containing a row that contains a null value in either OffenceFromDate or OffenceToDate, I'm now getting the following exception -
Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(System.Windows.Size)
System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Data
StackTrace:
at Telerik.Windows.Data.Expressions.UnboxT`1.NullableField[TElem](Object value) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Expressions\MemberAccess\Unbox.cs:line 39
InnerException:
Is there any way around this? As I mentioned earlier, the older release was fine with these records.
Thanks for your time.
Paul
I have some XAML that worked fine with release 2011.1.502.35, but I want to upgrade to the latest version (2011.3.11.16.0).
Unfortunately, I have a number of GridViews with GridViewDataColumn fields bound to nullable DateTime fields like this -
<telerik:RadGridView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Precedence}" Header="Precedence" IsReadOnly="True" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding Description}" Header="Description" /> <telerik:GridViewDataColumn DataMemberBinding="{Binding OffenceFromDate}" Header="From Date"/> <telerik:GridViewDataColumn DataMemberBinding="{Binding OffenceToDate}" Header="To Date"/> <telerik:GridViewComboBoxColumn ItemsSource="{Binding RelativeSource={RelativeSource AncestorType=Page}, Path=DataContext.Queues}" SelectedValueMemberPath="OID" DataMemberBinding="{Binding AllocationQueue}" DisplayMemberPath="Name" Header="Assign To Queue" IsComboBoxEditable="True" /> </telerik:RadGridView.Columns> </telerik:RadGridView>When I load up a grid containing a row that contains a null value in either OffenceFromDate or OffenceToDate, I'm now getting the following exception -
Telerik.Windows.Controls.GridView.GridViewDataControl.MeasureOverride(System.Windows.Size)
System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Source=Telerik.Windows.Data
StackTrace:
at Telerik.Windows.Data.Expressions.UnboxT`1.NullableField[TElem](Object value) in c:\TB\117\WPF_Scrum\Release_WPF\Sources\Development\Core\Data\Expressions\MemberAccess\Unbox.cs:line 39
InnerException:
Is there any way around this? As I mentioned earlier, the older release was fine with these records.
Thanks for your time.
Paul