Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Renders Collaborative Application Markup Language (CAML) within a view, executing if more items are returned in the view than the specified row limit for the view.
Most standard Microsoft SharePoint Foundation 2010 list views ignore this element. For more information, see XMLDefinition and CAML View Schema.
<PagedRowset>
</PagedRowset>
The following sections describe attributes, child elements, and parent elements.
None
Numerous
This element provides a section of the view that is rendered if there is more than one page of data. Within a PagedRowset element, the following variables can be implemented:
<GetVar Name="PageFirstRow"/>
returns the item number of the first item on the current page.
<GetVar Name="PageLastRow"/>
returns the item number of the last item on the current page.
<GetVar Name="NextPageData"/>
returns the information that must be passed along in the URL so that the next page of data to be displayed can be determined.
The following example uses the PagedRowset element to display the string "(Items 1 to N)" where N represents the current setting for the RowLimit element. The example also displays Next and an icon representing Next, which are both hyperlinks to the current view page with information necessary to display the next 100 items.
<PagedRowset>
<HTML><![CDATA[ <TABLE width="100%" border=0><TR><TD align=right
Class="ms-vb"> ]]></HTML>
<HTML>(Items</HTML>
<HTML><![CDATA[ &nbsp; ]]></HTML>
<GetVar Name="PageFirstRow" HTMLEncode="TRUE" />
<HTML><![CDATA[ &nbsp; ]]></HTML>
<HTML>to</HTML>
<HTML><![CDATA[ &nbsp; ]]></HTML>
<GetVar Name="PageLastRow" HTMLEncode="TRUE" />
<HTML>)</HTML>
<HTML><![CDATA[ &nbsp;<A HREF="javascript:"
OnClick='javascript:SubmitFormPost(" ]]></HTML>
<ScriptQuote NotAddingQuote="TRUE">
<PageUrl />
<HTML>?</HTML>
<GetVar Name="NextPageData" />
</ScriptQuote>
<HTML><![CDATA[ ");javascript:return false;'> ]]></HTML>
<HTML>Next</HTML>
<HTML><![CDATA[ </A> <A HREF="javascript:"
OnClick='javascript:SubmitFormPost(" ]]></HTML>
<ScriptQuote NotAddingQuote="TRUE">
<PageUrl />
<HTML>?</HTML>
<GetVar Name="NextPageData" />
</ScriptQuote>
<HTML><![CDATA[ ");javascript:return false;'> ]]></HTML>
<HTML><![CDATA[ <img src=" ]]></HTML>
<ImagesPath />
<HTML><![CDATA[ /next.gif" border=0></A>&nbsp;
</TD></TR></TABLE> ]]></HTML>
</PagedRowset>
Events
Microsoft 365 Community Conference
May 6, 2 PM - May 9, 12 AM
Skill up for the era of AI at the ultimate community-led Microsoft 365 event, May 6-8 in Las Vegas.
Learn more