Endless Paging
- 2 minutes to read
You can set the ASPxCardViewPagerSettings.Mode property to EndlessPaging to enable our Endless Paging mode.
In Endless Paging mode, the grid hierarchy is created on the server side, and is sent to the client side on demand - based on user actions. The hierarchy is created according to card keys. The ASPxGridBase.KeyFieldName property should be specified so that the grid works properly.
Since the grid only creates portions of its hierarchy on the server side, visible card indexes can differ from indexes on the client side. Therefore, use the ASPxGridBase.FindVisibleIndexByKeyValue method to get the visible index of the actual card before using it (e.g., in the ASPxClientCardView.GetCardValues method).
In Endless Paging mode, a grid can be updated in two ways.
- A partial update is executed when loading a page. In this instance, cards that are already loaded on the client side are not updated.
- A full update is performed when filtering and sorting. In this instance, the view on the client side is not synchronized with the data on the server side, so the data should be reloaded.
Endless Paging Mode Limitations
- Templates. In Endless Paging mode, only the currently required data is created on the server. When the grid contains a template with a control, it cannot access the template data if the hierarchy has not yet been created on the server side. Therefore, in this mode, grid templates should be used for appearance customization purposes only.
- Master-Detail Grid. The master-detail grid implementation is based on the template technology, and thus is not supported in Endless Paging mode.
Edit Form Template. Edit form templates do not work properly in Endless Paging mode. To use them, collect and update grid data manually on the client side.
The MakeCardVisible server-side method. In Endless Paging mode, the ASPxCardView.MakeCardVisible method is not in effect.