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

get Pager value on the server

3 Answers 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 28 Jan 2016, 04:07 PM

Hi

How do I get the value of the Pager on the server, .Pagesize always returns the initial page load page size.

What I'm trying to do is capture the users selected Pagesize in save it into their profile (I don't need the full persistence framework)

 Also where should I do the setting of the page size, Did I read that it was to be done in the NeedDataSource event?

Andy

 

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 02 Feb 2016, 09:51 AM
Hello Andy,

The property you are looking for is CurrentPageIndex. For your convenience, I am also sending a sample RadGrid web site to demonstrate how you can preserve it.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andy Green
Top achievements
Rank 2
answered on 02 Feb 2016, 02:09 PM

Thanks Eyup, but what I need is the valus of the page size drowdown, ie 20, 50 All etc.

Andy

0
Eyup
Telerik team
answered on 05 Feb 2016, 09:05 AM
Hi Andy,

I've modified the sample to apply the requested functionality. Please check it out and let me know about the result.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or