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

[Solved] Edit mode in Grid fails when bound to Dictionary

1 Answer 97 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.
Shashi
Top achievements
Rank 1
Shashi asked on 17 Jun 2013, 04:07 AM
I created a sample application and attached the RadDataGrid to a Dictionary<string, string>
on double clicking the cell, the app crashes with the following in the output debug window

A first chance exception of type 'System.Reflection.TargetException' occurred in mscorlib.dll
'DEL_RADGRid.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
'DEL_RADGRid.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
Error: Cannot get 'Key' value (type 'String') from type 'System.Runtime.InteropServices.WindowsRuntime.CLRIKeyValuePairImpl`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. BindingExpression: Path='Key' DataItem='System.Runtime.InteropServices.WindowsRuntime.CLRIKeyValuePairImpl`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'; target element is 'Windows.UI.Xaml.Controls.TextBox' (Name='null'); target property is 'Text' (type 'String').
A first chance exception of type 'System.Reflection.TargetException' occurred in Telerik.UI.Xaml.Grid.DLL
The program '[5172] DEL_RADGRid.exe: Managed (v4.0.30319)' has exited with code -1073741189 (0xc000027b).

Does the RadDataGrid support Editing of Dictionary yet? (or will it be available later on)

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvyatko
Telerik team
answered on 18 Jun 2013, 10:56 AM
Hello Shashi,

Thank you for choosing our controls for Windows 8.

Currently, RadDataGrid does not provide editing support for Dictionary and we do not have immediate plans  for extending the control in that direction. One of the reasons for that is that Dictionary does not provide vital infrastructure used during editing - INotifyPropertyChanged, unified schema (strongly-typed properties/columns), INotifyDataErrorInfo, IEditableObject. Thus, supporting this scenario will take advantage only partially of RadDataGrid's capabilities.
Nevertheless, we recognize that there are scenarios in which the schema is defined at runtime (based on remote data). We have plans for providing editing support for dynamic and/or ExpandoObject that cover these scenarios.

I hope this helps. Let me know if you have further questions.

Regards,
Tsvyatko
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Shashi
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or