New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The OnPageSizeChanging client-side event is fired when current page size is set on RadDataPager object.

The event handler receives two arguments:

  1. the RadDataPager object that fired the event.

  2. an event arguments object that exposes the following methods: OnPageSizeChanging event arguments object

Name Return Type Arguments Description
get_oldPageSize() int Returns the old page size.
get_newPageSize() int Returns the new page size.
get_domEvent() DOM event object Returns the DOM event object.
set_newPageSize(value) int Set the new page size.
set_cancel(value) bool Lets you prevent the page size from changing.

The following example demonstrates how to use the event arguments of the OnPageSizeChanging event:

<telerik:RadDataPager RenderMode="Lightweight" ID="RadDataPager1" runat="server">
    <ClientEvents OnPageSizeChanging="PageSizeChanging" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function PageSizeChanging(sender, eventArgs) {
            var oldPageSize = eventArgs.get_oldPageSize();
            var newPageSize = eventArgs.get_newPageSize();

See Also

In this article
Not finding the help you need? Improve this article