pagingSize
pagingSize: number | undefined
Paging size for obtaining content records.
Presentation data providers, when used with paging, have ability to save one backend request for size / count. That
can only be achieved when pagingSize
property is set on the data provider and it's value matches size which is used when
requesting content. To help developers notice this problem, data provider emits a warning similar to this:
ContentDataProvider.pagingSize doesn't match pageOptions in ContentDataProvider.getContent call. Make sure you set provider's pagingSize to avoid excessive backend requests.
To fix the issue, developers should make sure the page size used for requesting data is also set for the data provider:
const pagingSize = 10;
const provider = new ContentDataProvider({ imodel, ruleset, displayType, pagingSize});
// only one backend request is made for the two following requests:
provider.getContentSetSize();
provider.getContent({ start: 0, size: pagingSize });
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.