This question is locked. New answers and comments are not allowed.
Hello,
I have a grid that is bound to an ObservableCollection<dynamic>. Each object in the collection is defined as an ExpandoObject.
The grid is configured to allow inline editing. When a row enters edit mode, the values become editable and work as expected. However, when the row edit is canceled or committed, an unhandled exception is thrown: "The method or operation is not implemented."
Here is the stack trace for the exception:
System.NotImplementedException
at Telerik.Data.Core.Fields.ExpandoObjectFieldInfo.SetValue(Object item, Object fieldValue)
at Telerik.UI.Xaml.Controls.Grid.DataGridTypedColumn.SetValueForInstance(Object instance, Object value)
at Telerik.UI.Xaml.Controls.Grid.EditingService.CancelEdit()
at Telerik.UI.Xaml.Controls.Grid.Commands.CancelEditCommand.Execute(Object parameter)
at Telerik.UI.Xaml.Controls.Grid.Commands.CommandService.ExecuteCommandCore(CommandId id, Object parameter, Boolean searchUser)
at Telerik.UI.Xaml.Controls.Grid.Commands.CommandService.ExecuteCommand(CommandId id, Object parameter)
at Telerik.UI.Xaml.Controls.Grid.RadDataGrid.CancelEdit(ActionTrigger trigger, Object parameter)
at Telerik.UI.Xaml.Controls.Grid.Primitives.DataGridEditRow.OnCancelButtonClick(Object sender, RoutedEventArgs e) at Windows.UI.Xaml.Controls.Control.OnPointerReleased(PointerRoutedEventArgs e)
at Telerik.UI.Xaml.Controls.Primitives.Common.InlineButton.OnPointerReleased(PointerRoutedEventArgs e)
Is it possible to use RadDataGrid to edit a collection of dynamic objects?
Thanks!
Geoff
I have a grid that is bound to an ObservableCollection<dynamic>. Each object in the collection is defined as an ExpandoObject.
The grid is configured to allow inline editing. When a row enters edit mode, the values become editable and work as expected. However, when the row edit is canceled or committed, an unhandled exception is thrown: "The method or operation is not implemented."
Here is the stack trace for the exception:
System.NotImplementedException
at Telerik.Data.Core.Fields.ExpandoObjectFieldInfo.SetValue(Object item, Object fieldValue)
at Telerik.UI.Xaml.Controls.Grid.DataGridTypedColumn.SetValueForInstance(Object instance, Object value)
at Telerik.UI.Xaml.Controls.Grid.EditingService.CancelEdit()
at Telerik.UI.Xaml.Controls.Grid.Commands.CancelEditCommand.Execute(Object parameter)
at Telerik.UI.Xaml.Controls.Grid.Commands.CommandService.ExecuteCommandCore(CommandId id, Object parameter, Boolean searchUser)
at Telerik.UI.Xaml.Controls.Grid.Commands.CommandService.ExecuteCommand(CommandId id, Object parameter)
at Telerik.UI.Xaml.Controls.Grid.RadDataGrid.CancelEdit(ActionTrigger trigger, Object parameter)
at Telerik.UI.Xaml.Controls.Grid.Primitives.DataGridEditRow.OnCancelButtonClick(Object sender, RoutedEventArgs e) at Windows.UI.Xaml.Controls.Control.OnPointerReleased(PointerRoutedEventArgs e)
at Telerik.UI.Xaml.Controls.Primitives.Common.InlineButton.OnPointerReleased(PointerRoutedEventArgs e)
Is it possible to use RadDataGrid to edit a collection of dynamic objects?
Thanks!
Geoff