ASPxClientDataView.SetPageSize(pageSize) Method

Sets the size of a single ASPxDataView's page.

Declaration

SetPageSize(pageSize: number): void

Parameters

Name Type Description
pageSize number

An integer value that specifies the page size.

Remarks

Depending on the selected layout mode, the SetPageSize method sets the page size in different formats.

To get the page size on the client side, use the ASPxClientDataView.GetPageSize method.

Note that the SetPageSize method has affect only if the page size item element is visible and it contains an item with the page size passed to this method.


<dx:ASPxDataView ID="ASPxDataView1" runat="server" ClientInstanceName="dataView">
     <PagerSettings Visible="true">
          <PageSizeItemSettings Items="2,3,5,10" Visible="true">
          </PageSizeItemSettings>
     </PagerSettings>
...
See Also