Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to implement the Load More functionality

$
0
0
This example shows how to implement the grid's load-more feature - when an end-user scrolls to the bottom of the grid, a set of new data items is added to the end of the grid. To add this functionality, follow the steps below.

    1. Set the GridControl.IsLoadMoreEnabled property to true to enable the grid's load-more feature.
    2. Create a command to be executed when an end-user scrolls to the bottom of the grid.
    3. Bind the created command to the grid using the GridControl.LoadMoreCommand property. 

In this example, data items for each next load (ten new orders) are generated randomly in code. The maximum number of loads an end-user is allowed to perform is 10. The count of data items currently loaded to the grid is displayed by the total summary that is automatically updated after each load.

Viewing all articles
Browse latest Browse all 7205

Trending Articles