Load on Demand

2 posts, 0 answers
  1. Paul
    Paul avatar
    35 posts
    Member since:
    Aug 2015

    Posted 14 Sep 2016 Link to this post


    The RadGridView's DataSource is set to a BindingSource. I am using the RadGridView.TableElement.VScrollBar.ValueChanged event to detect once the user has scrolled to a certain point. I then grab more items from the database and load them into the BindingSource and call BindingSource.ResetBindings(false) to refresh the items in the grid. This works fine unless the user is dragging the Thumb on the ScrollBar. After the event is triggered and more items are loaded, the Thumb is still focused and drag-able, but there is a large empty area below the last row in the grid. You can scroll down a lot further than the number of rows in the grid. Calling Refresh on the GridView does not remove the white area.

    Is there a way to remove the white area this creates? Or maybe a better way to accomplish Load on Demand?

  2. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4079 posts

    Posted 16 Sep 2016 Link to this post

    Hello Paul,

    Thank you for writing.  

    I think that RadVirtualGrid is more suitable for your case. It is a grid component developed on top of Telerik Presentation Framework which provides a convenient way to implement your own data management operations and optimizes the performance when interacting with large amounts of data. Additional information is available here: http://docs.telerik.com/devtools/winforms/virtualgrid/virtualgrid

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

    Telerik by Progress
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Back to Top