locked
FilterDescriptor - empty value in datapicker RRS feed

  • Question

  • Hi!

    I have problem with empty value in data picker. I want the filter to be ignored when the value is empty. In my application there is a line:

                    <ria:FilterDescriptor PropertyPath="sent" Operator="IsEqualTo" Value="{Binding ElementName=DataFilter, Path=SelectedDate}" IgnoredValue="" />


    and then further down:

                     <sdk:DatePicker Width="100" Height="24" FontSize="10" x:Name="DataFilter" Margin="0 0 20 0" Text="" />


    ..and it's not working. It's not returning anything from DB as long as I pick some date or use  a specific date as a value in Text attribute in DatePicker.

    The question is: how can I make it ignore this filter when the value is empty?


    thanks

    pete


    Thursday, July 15, 2010 11:40 AM

Answers

  • Hi Pete,

    Your code is ok.  Would you please force DatePicker's SelectedData on xaml and have a try?  Please take a look at this link.

    Best regards,

    Jonathan 

    Thursday, July 22, 2010 5:14 AM