This question is locked. New answers and comments are not allowed.
When using the GridView of the previous official release this worked correct! (2010 release)
Now i'm using the latest internal build (01219RadControls_for_Silverlight_4_2011_1_0411_DEV_hotfix)
Now with this release I get a NullReferenceException with the following stacktrace:
at Telerik.Windows.Controls.GridViewBoundColumnBase.EvaluateIsReadOnlyState(Object item)
at Telerik.Windows.Controls.GridViewBoundColumnBase.CanEdit(Object item)
at Telerik.Windows.Controls.GridView.GridViewDataControl.BeginEdit(GridViewCell gridViewCell, RoutedEventArgs editingEventArgs)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCellMouseDown(GridViewCell cell, MouseButtonEventArgs args)
at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
This customer also has the same problem, I guess:
http://www.telerik.com/community/forums/silverlight/gridview/data-sources-for-the-gridview-and-problems.aspx
I'm binding to a PagedCollectionView. Here is a part of the XAML:
What is changed in the GridView that results in the exception?
How can I work around this?
Now i'm using the latest internal build (01219RadControls_for_Silverlight_4_2011_1_0411_DEV_hotfix)
Now with this release I get a NullReferenceException with the following stacktrace:
at Telerik.Windows.Controls.GridViewBoundColumnBase.EvaluateIsReadOnlyState(Object item)
at Telerik.Windows.Controls.GridViewBoundColumnBase.CanEdit(Object item)
at Telerik.Windows.Controls.GridView.GridViewDataControl.BeginEdit(GridViewCell gridViewCell, RoutedEventArgs editingEventArgs)
at Telerik.Windows.Controls.GridView.GridViewDataControl.OnCellMouseDown(GridViewCell cell, MouseButtonEventArgs args)
at Telerik.Windows.Controls.GridView.GridViewCell.OnMouseLeftButtonDown(MouseButtonEventArgs e)
at System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)
This customer also has the same problem, I guess:
http://www.telerik.com/community/forums/silverlight/gridview/data-sources-for-the-gridview-and-problems.aspx
I'm binding to a PagedCollectionView. Here is a part of the XAML:
<
telerik:RadGridView
Grid.Row
=
"1"
ShowGroupPanel
=
"False"
ItemsSource
=
"{Binding Boekingen}"
AutoGenerateColumns
=
"False"
RowIndicatorVisibility
=
"Visible"
IsFilteringAllowed
=
"False"
CanUserSortColumns
=
"False"
ShowColumnFooters
=
"True"
EditTriggers
=
"Default"
IsReadOnlyBinding
=
"{Binding Path=DataContext.IsBoekingVerwerkt, ElementName=LayoutRoot}"
BeginningEdit
=
"RadGridView_BeginningEdit"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"{Binding Path=Entity.BoekingBedrag, Source={StaticResource ResourceWrapper}}"
DataMemberBinding
=
"{Binding Bedrag}"
Width
=
"120"
IsSortable
=
"False"
>
<
telerik:GridViewDataColumn.CellTemplate
>
<
DataTemplate
>
<
Grid
>
<
TextBlock
x:Name
=
"bedragNettoValutaMaskedTextBox"
Text
=
"{Binding Bedrag, Mode=TwoWay, Converter={StaticResource DecimalFormatConverter}, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True}"
HorizontalAlignment
=
"Right"
/>
<
TextBlock
Margin
=
"5,0,0,0"
Text
=
"{Binding Document.BedrijfValutaWeergave}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Left"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellTemplate
>
<
telerik:GridViewDataColumn.CellEditTemplate
>
<
DataTemplate
>
<
Grid
>
<
telerik:RadMaskedTextBox
x:Name
=
"bedragNettoValutaMaskedTextBox"
Culture
=
"{Binding Culture, Source={StaticResource CurrentCulture}}"
Value
=
"{Binding Bedrag, Mode=TwoWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True}"
Style
=
"{StaticResource RadNumericMaskedTextBox}"
/>
<
TextBlock
Margin
=
"5,0,0,0"
Text
=
"{Binding Document.BedrijfValutaWeergave}"
VerticalAlignment
=
"Center"
HorizontalAlignment
=
"Left"
/>
</
Grid
>
</
DataTemplate
>
</
telerik:GridViewDataColumn.CellEditTemplate
>
<
telerik:GridViewDataColumn.Footer
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"5,0"
>
</
StackPanel
>
</
telerik:GridViewDataColumn.Footer
>
<
telerik:GridViewColumn.FooterCellStyle
>
<
Style
TargetType
=
"telerik:GridViewFooterCell"
>
<
Setter
Property
=
"ContentTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
Width
=
"115"
>
<
TextBlock
Margin
=
"0,0,5,0"
HorizontalAlignment
=
"Right"
VerticalAlignment
=
"Center"
Text
=
"{Binding DataContext.CurrentEntity.NogTeBoekenTotaalBedrag, ElementName=LayoutRoot, Converter={StaticResource DecimalFormatConverter}, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True}"
/>
<
TextBlock
Margin
=
"5,0,5,0"
Text
=
"{Binding DataContext.CurrentEntity.BedrijfValutaWeergave, ElementName=LayoutRoot}"
VerticalAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
telerik:GridViewColumn.FooterCellStyle
>
</
telerik:GridViewDataColumn
>
What is changed in the GridView that results in the exception?
How can I work around this?