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

RadGrid PagerItem Customization

3 Answers 51 Views
Grid
This is a migrated thread and some comments may be shown as answers.
spt3210
Top achievements
Rank 1
spt3210 asked on 28 Oct 2010, 09:44 PM

Hi,

 

We are trying to use RadGrid to display results from SharePoint Search. We are using custom paging and getting  only 10 pages at any time.

 

We tried using Custom paging for Radgrid to get correct total count and pager.

 

Paging for sharepoint behaves in a different way and we need to change URL for pager links to get it working.

 

Current URL for any pager item is similar to below:

 

javascript:__doPostBack('ctl00$m$g_97f5302f_eb53_4e7e_ad4d_174495682a37$ctl00$InvoicesGrid$ctl00$ctl03$ctl01$ctl05','')

 

We need to change it to something similar to below…

 

http://<sitename>/Sites/Search/Pages/results.aspx?k=ABC%3ALAB&start1=1

 

where start1 indicates the starting index of current page i.e  PageSize * PageIndex + 1

Thanks.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 03 Nov 2010, 10:24 AM
Hi spt3210,

I have already sent an answer to your colleague Nathan Merrill about the same question.

You can try using the SEO paging functionality in RadGrid:

<PagerStyle  EnableSEOPaging="true"  SEOPagingQueryStringKey="......" />

http://www.telerik.com/help/aspnet-ajax/grdseopaging.html

http://demos.telerik.com/aspnet-ajax/grid/examples/programming/seopaging/defaultcs.aspx

Regards,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
spt3210
Top achievements
Rank 1
answered on 03 Nov 2010, 03:32 PM
Hi Dimo,

I looked at SEO paging and links you provided. It is similar to what we are trying to achieve.

I can change the parameter name, but I also need to update value to "PageSize * PageIndex + 1". It is currently taking PageIndex as the value.

Is there a way to control the value?


Thanks!
0
Dimo
Telerik team
answered on 03 Nov 2010, 05:18 PM
Hi spt3210,

I am afraid the described behavior is not supported - RadGrid expects a page index, not item index.

Best wishes,
Dimo
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
spt3210
Top achievements
Rank 1
Answers by
Dimo
Telerik team
spt3210
Top achievements
Rank 1
Share this question
or