Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
FilterFieldItemControl OK() command error!
posted

Hello,

I need to use the FilterFieldItemControl disconnected from the usual containers, just like this: 

<Grid>
    <igPivotPrim:FilterFieldItemControl Content="{Binding ElementName=UserControl_Edition, Path=MyFilter}"/>
</Grid>
The Property Filter is an "IFilterViewModel" created like this:
IFilterViewModel filterViewModel = this.dataSource.CreateFilterViewModel(designatedHierarchy);
this.MyFilter=filterViewModel;
The problem is when i click the OK button i get the following exception:

Exception Type: 'NullReferenceException'. Message: 'Object reference not set to an instance of an object.'. at: Infragistics.Controls.Grids.Primitives.FilterFieldItemControl.OK()

What am i doing wrong? 

Regards,
Ângelo.