Removing Filter from UI throws NullReferenceException

2 posts, 0 answers
  1. Kim Bouchard
    Kim Bouchard avatar
    13 posts
    Member since:
    Sep 2007

    Posted 06 May 2013 Link to this post


    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.
      Message=Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
           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.

    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
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 07 May 2013 Link to this post


    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.

    Rossen Hristov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top