Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8306917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:25:36+00:00 2026-06-08T18:25:36+00:00

I am using WPF Telerik GridView and DataPager in my project and i want

  • 0

I am using WPF Telerik GridView and DataPager in my project and i want to show a list of Items using this two controls.

I bound Source property of DataPager to Items property of the DataGrid (Like original demo).
my problem is: datapager loads all of entities in first call!. i want to load just amount of pagesize (20).

this is my code:

private void LoadProductsBackgroundWorker_DoWork(object sender, DoWorkEventArgs e)
{
    using (AccountingContext context = new AccountingContext())
    {
        Dispatcher.Invoke((Action)(() => grdProducts.ItemsSource = new ObservableCollection<Item>(context.Items.Include("UnitType").Include("Producer").ToList())));
    }
}

<telerik:RadDataPager Name="dataPager" PageSize="20" Source="{Binding Items, ElementName=grdProducts}" />

    <telerik:RadGridView Name="grdProducts">
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.ID}" DataMemberBinding="{Binding Path=ID}" />
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.ProductName}" DataMemberBinding="{Binding Path=Name}" Width="200" />
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.Producer}" DataMemberBinding="{Binding Path=Producer.Name}" Width="200" />
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.UnitType}" DataMemberBinding="{Binding Path=UnitType.Name}" Width="150" />
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.Price}" DataMemberBinding="{Binding Path=Price}" Width="150" />
            <telerik:GridViewDataColumn Header="{x:Static sr:EntitiesResource.Description}" DataMemberBinding="{Binding Path=Description}" Width="*" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:25:37+00:00Added an answer on June 8, 2026 at 6:25 pm

    The datapager by default works on a collection of data and internally splits into the specified page size. So you are right in saying that it gets everything and then pages. But for your scenario where you want to retrieve data = pagesize on each page change, you would need to customize the rad data pager Source. Basically the PageSource is of type IPagedCollectionView. So you would need to create a class which implements IEnumerable and Telerik.Windows.Data.IPagedCollectionView interfaces, provide implementation for those interface members and you will be able to achieve your requirement. Its pretty lengthy to explain it here. But what i can suggest is – download RadControls for WPF and look at Endless Paging using DataPager. That provides the requirement that you are looking for.

    Hope i was able to provide you with some pointers to your requirement.

    Lohith (Tech Evangelist, Telerik India)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using WPF, is it possible to bind two source properties, via one-way binding, to
I'm using an Telerik RadGridView in a WPF application, which has two editable columns
I made a project using WPF and I want to open its window in
Hai am using telerik wpf grid in grid selection change event am getting the
Using WPF, and VB.net, I want to update a textbox in a textblock with
(using WPF application) I get an error when i want to save a bool
I am using WPF WebBrowser control and I want to acces some of the
Im working on a middle size project, using WPF. Need DataGrid, suitable for the
Using WPF/PRISM I want to log my messages through ILoggerFacade to my GUI (A
Using WPF, how do I put controls in the window border, like the address

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.