Tuesday, 28 May 2013

How to use complex datatypes(link items) filter in WPF using Xceed Grid

How to use complex datatypes(link items) filter in WPF using Xceed Grid

I would like to add a custom filter for filtering the objects in WPF, We are using auto filter in Xceed its filtering the var & int but its not filtering the Objects, Any one can help me for adding custom filter for filtering the Objects..
<xcdg:DataGridControl.Resources>
                             <Style x:Key="autoFilterStyle" TargetType="{x:Type xcdg:AutoFilterControl}">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate
                                    TargetType="{x:Type xcdg:AutoFilterControl}">
                                            <Border x:Name="autoFilterControlBorder"
                                                  Background="{TemplateBinding Background}"
                                                  BorderBrush="{TemplateBinding BorderBrush}"
                                                  BorderThickness="{TemplateBinding BorderThickness}">
                                             <Grid>
                                                 <Grid.RowDefinitions>
                                                        <RowDefinition Height="Auto" />
                                                        <RowDefinition Height="*" />
                                                    </Grid.RowDefinitions>
                                                        <Button DockPanel.Dock="Top"
                                                        Grid.Row="0"
                                                        MinHeight="24"
                                                        Background="{TemplateBinding Background}"
                                                        Content="{TemplateBinding ClearAutoFilterText}"
                                                        Command="xcdg:AutoFilterControl.ClearAutoFilterValues"
                                                        Foreground="Black" />
                                                        <ListBox x:Name="PART_DistinctValuesHost"
                                                         Grid.Row="1"
                                                         MaxHeight="350"
                                                         Width="200"
                                                         ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                                         Background="{TemplateBinding Background}"
                                                         Foreground="{TemplateBinding Foreground}"
                                                         BorderThickness="0"
                                                         ItemTemplate="{TemplateBinding DistinctValueItemTemplate}"
                                                         ItemTemplateSelector="{TemplateBinding DistinctValueItemTemplateSelector}"
                                                         ItemContainerStyle="{TemplateBinding DistinctValueItemContainerStyle}"
                                                         ItemContainerStyleSelector="{TemplateBinding DistinctValueItemContainerStyleSelector}"
                

No comments:

Post a Comment