RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDefaultFieldsPagedAdapter Class

TDefaultFieldsPagedAdapter is a base class for adapters that support paging.

Pascal
TDefaultFieldsPagedAdapter = class(TDefaultFieldsAdapter);
C++
class TDefaultFieldsPagedAdapter : public TDefaultFieldsAdapter;

Enable paging by setting the PageSize property. When paging is enabled, the way that the adapter enumerates records is affected. The adapter calculates the number of pages by dividing the number of records by the page size. It keeps track of a current page number. When the enumerating records, the records on the current page are enumerated. Server-side script simply enumerates the records. Server-side script does not need to be aware of the page size or current page number. When paging is enabled, default actions for moving between pages are automatically added to the adapter. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!