This is a migrated thread and some comments may be shown as answers.

GridSettingsPersister doesn't correctly load PageSize with customer pager

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 13 May 2011, 09:36 PM
I noticed that when using GridSettingsPersister.LoadSettings, it does not load the PageSize into the RadGrid when I am using a custom pager. I was able to fix this for myself by change the below method of GridSettingsPersister. Is this a correct fix?

    protected virtual void LoadPagingSettings()
    {
        if (Grid.MasterTableView.AllowPaging && Settings.PageSize > 0)
        {
            //Grid.MasterTableView.PageSize = Settings.PageSize;
            Grid.PageSize = Settings.PageSize;
        }
    }

Thanks!

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 19 May 2011, 08:51 AM
Hi Aaron,

Yes, most of the times, you are OK setting the RadGrid.PageSize property instead of RadGrid.MasterTableView.PageSize.

Greetings,
Veli
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Aaron
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or