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

2 posts, 0 answers
  1. Toby
    Toby avatar
    1 posts
    Member since:
    Nov 2011

    Posted 23 May 2014 Link to this post

       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

  2. Ivan Ivanov
    Ivan Ivanov avatar
    1219 posts

    Posted 28 May 2014 Link to this post


    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.

    Ivan Ivanov
    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.
Back to Top