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

DataPager not working quite right with QueryableCollectionView

1 Answer 137 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Jerome
Top achievements
Rank 1
Jerome asked on 21 Sep 2010, 05:02 PM
I have a IQueryable<T>, I'm wrapping it with a QueryableCollectionView. Setting the PageSize to 100. There are some 1500 items in the collection.

<Grid>
    <Grid.RowDefinitions>
        <RowDefinition
            Height="*" />
        <RowDefinition
            Height="Auto" />
    </Grid.RowDefinitions>
    <telerik:RadGridView
        Grid.Row="0"
        AutoGenerateColumns="True"
        ItemsSource="{Binding PagedSource}" />
    <telerik:RadDataPager
        Grid.Row="1"
        Source="{Binding PagedSource}"
        DisplayMode="All"
        IsTotalItemCountFixed="False" />
</Grid>

The GridView works fine. It shows only the first 100 records. The DataPager however renders showing page " " of 1, and doesn't let me change pages. It looks unaware of the QueryableCollectionView. I'm not sure what I'm missing. I'm assuming it's in setting up the Source improperly somehow.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Sep 2010, 08:30 AM
Hello Jerome,

There are many ways in which you can set-up a pager and a grid.

Please, take a look at my tutorial here. It lists all possible configurations and provides sample project for them.

Let me know if you have any other questions after reading my blog post. In case you can't get this working, please open a separate support ticket and attach a runnable sample project. We will examine it in order to see what is going on.

Best wishes,
Ross
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DataPager
Asked by
Jerome
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or