Load on Demand

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

    Posted 14 Sep Link to this post

    Hello,

    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
    Admin
    Dess avatar
    1609 posts

    Posted 16 Sep 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.

    Regards,
    Dess
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top