Load Page On Demand

4 posts, 0 answers
  1. Leandro
    Leandro avatar
    3 posts
    Member since:
    Mar 2015

    Posted 04 May 2015 Link to this post

    Good Morning,

    I have a gridview that loads some info about products in an unbound manner. I am using paging so I load only a handful at a time to quicken the loading process(because it really takes a long time to load many lines at once since there are some image getting/network traffic involved). But when I use paging, the grid still takes forever to load all pages before being usable. Is there anyway to load pages on demand? By on demand I mean click on the number of a page and load only the items that show on that page.

    What I tried so far:

    foreach (ECommerceDTS.PRODUCTSRow row in eCommerceDTS.PRODUCTS.Skip(radGridView1.GridViewElement.PagingPanelElement.ZIndex * PAGE_SIZE).Take(PAGE_SIZE))
        productEcomm = new ProductEcommerce(row);

    This works wonderfully loading only PAGE_SIZE items. The problem is that it loads only the first page, and the grid doesn't show other buttons to go to page 2. Is there any workaround this? Maybe hardsetting the number of buttons to show even if there are no items loaded?

    Another question: Am I right to assume that ZIndex of the PagingPanelElement means the index of the selected page?


    Thanks in advance. Kind Regards,


  2. Leandro
    Leandro avatar
    3 posts
    Member since:
    Mar 2015

    Posted 04 May 2015 Link to this post

    I want something like this:


    But for WinForms...

  3. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    3530 posts

    Posted 07 May 2015 Link to this post

    Hello Leandro,

    Thank you for writing.

    When using paging RadGridView still needs the whole data source in order to calculate the necessary information e.g. how many pages you need. In order to improve performance you can use Virtual mode instead. However, it does not support paging.

    Load on demand functionality is available for populating hierarchical grid. However, it is a reasonable request to have it for pages. I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.

    I have also updated your Telerik points.

    You can construct a UserControl with several buttons indicating the page number. When a certain button is clicked you can repopulate the RadGridView with the relevant subset of data.

    As to your second question it seems that you need pinned columns. Please refer to our Pinning and Unpinning Columns help article. 

    I hope this information helps. Should you have further questions, I would be glad to help.

    See What's Next in App Development. Register for TelerikNEXT.

  4. Quicken support
    Quicken support avatar
    1 posts
    Member since:
    Oct 2017

    Posted 30 Oct 2017 Link to this post

    Nice code i love it and also very much helpful for many..
Back to Top