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
90
Custom Pager and grouping error when sorting
posted

Hello,

I have a custom pager which I don't want replicated in the group items pagers.

It works fine initially but when I sort then the custom pager jumps into  a group item pager.

Here are the steps to replicate it.

In the XamGrid -> Style -> PagerCustomization.xaml 

in the template

under 

<TextBlock TextAlignment="Center" VerticalAlignment="Center" Text="{Binding TotalPages}" Foreground="{StaticResource ForegroundBrush}" />

add 

<TextBlock x:Name="test" Text="test" Style="{StaticResource akis1}" />

in the resourceDictionary add

<Style TargetType="TextBlock" x:Key="akis1">
                <Setter Property="Visibility" Value="Hidden"/>
                <Setter Property="Background" Value="Yellow" />
                <!-- this is the one -->
                <Style.Triggers>
                    <DataTrigger Binding="{Binding  RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type igPrim:PagerCellsPanel}}, Path=Row.Manager.ParentRow}" Value="{x:Null}">
                        <Setter Property="Visibility" Value="Visible"/>
                        <Setter Property="Background" Value="Red" />
                    </DataTrigger>
                </Style.Triggers>
</Style>

Thanks,
Akis