Filter for numeric data

Sep 19, 2012 at 5:51 AM

Hello, this is a great work, thanks.

I just have a question, is it possible to have a filter for numeric data (like display all data bigger than 10)?? If yes, how I can implement that? 

Sep 19, 2012 at 9:33 AM


As of now numeric operation is not supported. Will try to add it in future release. You can try to tweak code mentioned below to get desired result.

<Popup x:Name="popupDrag" StaysOpen="True" IsHitTestVisible="True" Placement="RelativePoint"  PlacementTarget="{Binding}" AllowsTransparency="False" IsOpen="False" MinWidth="150" MaxWidth="200" Tag="False">
                <StackPanel LostFocus="PopLostFocus" Focusable="True">
                    <Button FontFamily="{TemplateBinding FontFamily}" FontSize="9" MinHeight="24" IsEnabled="False" Foreground="Black"  LostFocus="PopLostFocus" Click="ClearClicked" x:Name="btnClear">(Clear Filter)</Button>
                    <ListBox x:Name="autoFilterList" FontFamily="{TemplateBinding FontFamily}" MaxHeight="350" VirtualizingStackPanel.IsVirtualizing="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
                                <CheckBox x:Name="chkBox" Margin="0" FontSize="9"  Content="{Binding Name}" IsChecked="{Binding IsChecked}" Checked="Checked" Unchecked="UnChecked" Tag="{Binding IsSelectAll}"/>
                                    <Trigger SourceName="chkBox" Property="Tag" Value="(Select All)">
                                        <Setter TargetName="chkBox" Property="FontWeight" Value="Bold" />