The Paged View data set uses standard data references just like any other data set (such as {ds_RowID}). Because the Paged View data set is dependent on another primary data set, the {ds_RowID} value for each row in the Paged View data set is identical to the ds_RowID of the corresponding row in the primary data set.
The following table shows a set of additional paging-specific data references that you can use when you create spry:region attributes.
Data Reference |
Description |
---|---|
{ds_PageNumber} |
The current page index. By default, this is a number between 1 and ds_PageCount. If you use the ZeroBasedIndexes constructor option and set it to true, this is a number between 1 and ds_PageCount, minus 1. |
{ds_PageSize} |
The maximum number of items that can appear on a page. |
{ds_PageCount} |
The total number of pages required to display all of the data. |
{ds_PageItemRowNumber} |
The zero-based row number of the current row being processed. |
{ds_PageItemNumber} |
The zero-based row number of the current row being processed plus 1. |
{ds_PageFirstItemNumber} |
The item number for the first row displayed on the current page. |
{ds_PageLastItemNumber} |
The item number for the last row displayed in the current page. |
{ds_PageItemCount} |
The total number of items on the current page. |
{ds_PageTotalItemCount} |
The total number of items on all pages. |
{ds_UnfilteredRowCount} |
The total number of rows in the data set. |
{ds_CurrentRowID} |
Always the ID of the first row in the current page. |
{ds_RowID} |
The row ID for the row being processed. |
{ds_CurrentRowNumber} |
Always zero (0), which is the index of the first row in the current page. |
{ds_RowNumber} |
The row index of the row being processed on the current page. |
<div spry:detailregion="pv1"> This is Page {ds_PageNumber} of {ds_PageCount}. </div>