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

LoadPersister Settings: Modify content

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nelbin
Top achievements
Rank 1
Nelbin asked on 17 Dec 2013, 09:47 AM
Can i change the pagesize of the loadpersister being loaded? It seems to be that I am having a tunnel vision atm and can't think of any work around

    Dim LoadPersister As New GridSettingsPersister(RadGrid1)
LoadPersister.LoadSettings(*some string or session here*)
RadGrid1.Rebind()

this is the codebehind of loading the loadingpersister any process that I can change the pagesize being rebinded?

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 20 Dec 2013, 02:28 PM
Hello Nelbin,

I'm not absolutely sure that I understand your question, but if you'd like to override the page size before it is applied you should be able to do something like this:
Dim LoadPersister As New GridSettingsPersister(RadGrid1)
LoadPersister.LoadSettings(*some string or session here*)
RadGrid1.PageSize = 12 'or RadGrid1.MasterTableView.PageSize = 12
RadGrid1.Rebind()

Regards,
Daniel
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Nelbin
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or