Doesn't work with FilterDescriptor

May 30, 2012 at 10:46 PM
Edited May 30, 2012 at 10:49 PM

Trying to use the nullable numeric control with a filterdescriptor for datagrid where the IgnoredValue={x:Null}.  Not sure if the value returned actually is a null or int?.

 

 

<activity:NullableNumericUpDown x:Name="numValue" Minimum="-1" Maximum="999999" Width="90"
                                Value="{Binding Path=ValueIncubator.ValueNullableInt, Mode=TwoWay}"/>

 

...

 

<riaControls:FilterDescriptor PropertyPath="MinValue" Operator="IsEqualTo" 
Value="{Binding ElementName=numValue, Path=Value}"
IgnoredValue="{x:Null}" />
May 30, 2012 at 11:08 PM

Solved!

<riaControls:FilterDescriptor PropertyPath="MinValue" Operator="IsEqualTo" Value="{Binding Path=ValueIncubator.ValueNullableInt}" IgnoredValue="{x:Null}" />