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

GridView bound to collection of dynamic objects fails edit when a celltemplateselector is used.

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Toby
Top achievements
Rank 1
Toby asked on 23 May 2014, 03:45 PM
Greetings.  
 
   I have searched the forums and not found anything similar to the issue we are experience. 

We have a RadGridView with the ItemSource set to an observable collection of dynamic objects.

The grid works fine for autogenerating the columns for each of the "properties" on the dynamic object.

When we attach a CellEditTemplateSelector to the colums in the AutoGeneratingColumn event, the editing stops working.

What I mean is that when the TrySetMember method is called as part of the CommitEdit, the SetMemberBinder passed in is correct, but the value passed is null.  If we don't use the Edit Template Selector it works fine.

We need the template selector because there are over 200 possible properties on the dynamic object and the user has the ability to add additional ones.  These properties range from simple string fields to values that are selected from a specific list.  The edit templates apply the appropriate control based on the attributes of the property object.

Any help or direction you can provide would be greatly appreciated.

- James


1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 28 May 2014, 10:54 AM
Hi,

We have made some research on the matter and it seems that such scenario cannot be supported by the current version of RadGridView. We have logged it into our tracking system, so that we will be able to improve this behavior in the future. Here is a link to the item, so that you can observe our progress on it.

Regards,
Ivan Ivanov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Toby
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or