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
Parents
  • 34810
    Offline posted

    Hello Akis,

    I have put together a sample project to isolate the Samples Browser sample that you are referring to, but I am a little bit unsure of the exact behavior you are seeing when you say that the custom pager is “jumping to a group item pager” on sort of the grid. Perhaps you are grouping the grid instead? Still, in doing so, I am not entirely sure I understand the issue you are seeing.

    Can you please take a look at the sample project I am attaching and elaborate a little bit on the exact behavior you are seeing and the behavior that you want to prevent? The only real difference between this sample and the one in the browser is the supplied data source.

    Please let me know if you have any other questions or concerns on this matter.

    XamGridPagingSampleIsolated.zip

Reply Children