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

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

1 Answer 68 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 29 Dec 2016, 08:06 PM

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

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 30 Dec 2016, 03:17 PM
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.
Tags
DataForm
Asked by
Eric
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or