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

[Solved] The relationship between filters and pages.

3 Answers 130 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 25 Jun 2009, 01:37 PM

This is kind of funny because any single example I have seen on your site and any others RadGrid  I used it was working but in one my case flipping pages kills the filters. It looks like nothing has to be done to preserve filters when pages changes, so I wonder why it does not work with my particular grid.

It is 2009, Q1 Radgrid, with standard NextPrevNumericAndAdvanced mode paging. It fed by non-cashable DataReader. The grid does NOT use Ajax and each repost sucks fresh data.

The filtering works fine, so the paging. However, the PageIndexChanged even does not fire. I thought to run in PageIndexChanged event across the columns, cash the CurrentFilterValues and then reset the Values in PreRender event but no luck for now. What is particularly interesting is that in your demo Grids you do NOT it and your filters/pages work very consistency with no extra coding efforts.  Am I missing anything?

Rgs, Romy

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 29 Jun 2009, 10:55 AM
Hello Roman ,

I am sending you a simple runnable application that demonstrates the needed approach. Please give it a try and let me know if this helps or if I am leaving something out.

Additionally, for more information about how to populate RadGrid control with data, please refer to the following help articles.
http://www.telerik.com/help/aspnet-ajax/grddatabindingbasics.html
http://www.telerik.com/help/aspnet-ajax/grdadvanceddatabinding.html
http://www.telerik.com/help/aspnet-ajax/grddeclarativedatasource.html

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Roman
Top achievements
Rank 1
answered on 29 Jun 2009, 11:13 AM

Pavlina, thanks.

I have no problem with use the grid and the filters/pages synchronization works fine with many others my RadGrids. Ny concern was about the behavior of the specific grid.

After much agony I have discovered what was the problem and I am posting is here just in case other would come across the same. It looks like the filters/pages synchronization gets wiped out as the PageIndexChanged event does not fire what the grid enables SEOPaging. I was under impression that SEOPaging juts publishes the QS and does not demand you to write own QS logic.

Anyhow, killing the SEOPaging brings the filters and pages back to bussness.

Thanks, Romy

0
Pavlina
Telerik team
answered on 29 Jun 2009, 04:50 PM
Hi Roman ,

I am glad that you discovered a solution which suits your needs - thank you for sharing it in this public forum thread. Thus you can help other people which search similar solution.
Please do not hesitate to contact us if you encounter any problems,.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Roman
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Roman
Top achievements
Rank 1
Share this question
or