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

Removing Filter from UI throws NullReferenceException

1 Answer 56 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Kim Bouchard
Top achievements
Rank 1
Kim Bouchard asked on 06 May 2013, 05:20 PM
Hi,

i've got a strange behavior when i try to remove a filter by using RadDataFilter's UI remove button (red cross).
Whenever i remove any CompositeFilter other than the root Filter, i've got the following exception.

System.NullReferenceException wurde nicht von Benutzercode behandelt.
  HResult=-2147467261
  Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
  Source=Telerik.Windows.Controls.Data
  StackTrace:
       bei Telerik.Windows.Controls.Data.DataFilter.CompositeFilterViewModel.get_LogicalOperator() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Controls\Data\DataFilter\CompositeFilterViewModel.cs:Zeile 47.
  InnerException:

I am using the 2013 Q1 SP1 controls. RadDataFilter is used in "unbound" mode.
The source property ist bound an IEnumrable<T> and AutoGenerateItemPropertyDefinitions is set to true.
The IEnumrable<T> has no items at all. It's only for auto generating the property definitions.
Even if i set no source property on RadDataFilter the above exception is thrown.
My RadDataFilter sits inside a Grid, the Grid itself is hosted by a UserControl which gets injected by Prism Region Manager.
When i use RadDataFilter directly on a Window without any Prism Regions Stuff then there seems to be no problem !?

Kind Regards
Kim 

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 07 May 2013, 07:29 AM
Hello,

We have never encountered this exception up to now.

If possible, can you please open a new support ticket and attach an oversimplified runnable dummy project that demonstrates this exception. We will attach it against our source code and debug it in order to see what exactly is going on.

Thanks in advance.

Regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DataFilter
Asked by
Kim Bouchard
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or