This is a migrated thread and some comments may be shown as answers.

[Solved] Error with Editing Dynamic Objects

1 Answer 104 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Geoff
Top achievements
Rank 1
Geoff asked on 24 Jul 2013, 07:14 PM
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

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 25 Jul 2013, 12:58 PM
Hi Geoff,

Thank you for contacting us.

For now, the RadDataGrid does not support editing when it is bound to a collection of ExpandoObjects. Also, we do not have immediate plans for implementing this feature. I can suggest you log this as a feature request in our Ideas and Feedback portal. Thus, our community can vote for it and raise its priority.

Feel free to contact us should you have any other questions or suggestions.

 

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Geoff
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or