Not able to add new item with a filtered QueryableEntityCollectionView as source

2 posts, 0 answers
  1. Eric
    Eric avatar
    6 posts
    Member since:
    Aug 2010

    Posted 29 Dec 2016 Link to this post

    Hi,

    I've got a DataForm with a QueryableEntityCollectionView as ItemSource.
    The QueryableEntityCollectionView is filtered, the DataForm as a custom CommandProvider.

    An exception occurs when DataForm.AddNewItem() is beeing hit. "An unhandled exception of type 'System.NullReferenceException' occurred in Telerik.Windows.Data.dll" this is not happening when there is no filter active. Any idea why this is happening and how to have a filter active and add a new item?

    Cheers! Eric

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1201 posts

    Posted 30 Dec 2016 Link to this post

    Hello,

    I prepared an example that uses filtered QueryableEntityCollectionView that is bound to RadDataForm, but I did not manage to reproduce the reported behavior. Can you please have a look at the attached project and tell me whether there any significant differences between my approach and yours? It is tested with the latest version.

    Regards,
    Ivan Ivanov
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top