This is a migrated thread and some comments may be shown as answers.

DataPager in GridView Hierarchy

2 Answers 46 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Richard Harrigan
Top achievements
Rank 1
Richard Harrigan asked on 01 Aug 2011, 09:28 PM
Hi,

I am using DataPager in the GridView root band.  Is it possible for child bands to have there own DataPager?  I am using my own process to faciilate lazy loading and would like to be able to control the number of rows returned and provide data paging.  If it is  possible I would imagine it would involve creating a data template of some kind.  If it is possible could you provide a code snippet

Thanks
Rich

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Aug 2011, 06:44 AM
Hello Rich,

 You can use HierarchyChildTemplate to declare the pager for child tables. Here is an example:

<telerik:RadGridView.HierarchyChildTemplate>
    <DataTemplate>
        <Grid MaxHeight="300">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
 
        </Grid>
        <telerik:RadGridView ItemsSource="{Binding Details}" />
        <telerik:RadDataPager Source="{Binding Details}" Grid.Row="1"/>
    </DataTemplate>
</telerik:RadGridView.HierarchyChildTemplate>


In this case Details is IPagedCollectionView.

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
Richard Harrigan
Top achievements
Rank 1
answered on 02 Aug 2011, 10:29 PM
Hi,

Is there a example program that uses this snippet.  I know I asked for a snippet but i over estimated my ability.

Thanks
Rich
Tags
DataPager
Asked by
Richard Harrigan
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Richard Harrigan
Top achievements
Rank 1
Share this question
or