Is there a property that allows me to specify the max page size of a Rad Grid?
I have a radgrid and it defaults to 10 but the user can change this. If there is 1000s of records, the user can specify 1000 and it’ll take ages to render. Would like to limit the page size to like 50 or something.
SOLUTION
Thanks to HalfTrackMindMan, I have posted the solution.
protected void rgSearchResults_PageSizeChanged(object sender, GridPageSizeChangedEventArgs e)
{
if (e.NewPageSize > 50)
{
e.Canceled = true;
rgSearchResults.PageSize = 50;
}
}
Bind to the PageSizeChanged event of the RadGrid and if NewPageSize is to much set Canceled property value of GridPageSizeChangedEventArgs to true.