For consideration in a future release the RadDataPager should allow registration to an OnPageSizeChanged event. I am handling the databinding and paging in code behind going through a WCF tier; however, I had to remove the change PageSize functionality from the end user because this event doesn't exist.
The Functionality should be like this to mirror the PageIndexChanged event:
ASPX:
<telerik:RadDataPager ID="RadDataPager1" runat="server" OnPageIndexChanged="RadDataPager1_PageIndexChanged"
OnTotalRowCountRequest="RadDataPager1_TotalRowCountRequest"
OnPageSizeChanged="RadDataPager1_PageSizeChanged" Skin="Windows7">
...
</telerik:RadDataPager>
Code Behind:
protected void RadDataPager1_PageSizeChanged(object sender, RadDataPagerPageSizeChangeEventArgs e)
{
int NewPageSize = e.NewPageSize;
...
}
Cheers,
Andrew.
The Functionality should be like this to mirror the PageIndexChanged event:
ASPX:
<telerik:RadDataPager ID="RadDataPager1" runat="server" OnPageIndexChanged="RadDataPager1_PageIndexChanged"
OnTotalRowCountRequest="RadDataPager1_TotalRowCountRequest"
OnPageSizeChanged="RadDataPager1_PageSizeChanged" Skin="Windows7">
...
</telerik:RadDataPager>
Code Behind:
protected void RadDataPager1_PageSizeChanged(object sender, RadDataPagerPageSizeChangeEventArgs e)
{
int NewPageSize = e.NewPageSize;
...
}
Cheers,
Andrew.