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

Grid Filters

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Neo
Top achievements
Rank 1
Neo asked on 29 Oct 2010, 02:48 PM
Hello All,

I have application where we are using RADGRid for dashboard. The requirement is when user filter some values on grid and navigate to another section and user comes back to the page, the radgrid should show the same filtered result and filtered values in the related filterboxes.

so right now i m using session variable to store filter expression, if i have two filter values like first name & last name and if i change the first name and filter again it looses values of last name from filter expression;
 even if value is in the filter box of RADGrid, its not assigning back to filter expression property.

Let me know how to resolve this one.

  More:
I m using client side binding for the grid.

2 Answers, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Nov 2010, 03:23 PM
Hi Neo,

Could you please confirm that you are using the logic provided in this help article in order to assign the filter expression to the RadGrid control?If this does not help, is it possible that you post your code related to the control's set-up, so we can look for anything wrong with it?

Best wishes,
Tsvetina
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
Neo
Top achievements
Rank 1
answered on 08 Nov 2010, 11:52 PM
Hello Telerik Team,

I m sure the article code will work but i did it in different way, i coded that in session variable. filter expression will be stored in the session variables.

I m assigning filter values back to its control on grid PreRender event.

So requirement was that when user clicks on edit link of the RADgrid item, it will redirect user to edit page and when user comes back by navigating through link from menu or by clicking on back button it should populate same results and show same filter criteria in filter control.
So i took the session variable on web service side and i m extracting the whole filter expression on web service to filter results from database view and doing the same thing on aspx code behind on grid PreRender event to assign filter values back to controls. i had to write parsing for filter expression but that's few lines of code but its totally worth it.

so everything is working fine and i delivered the module last week.  :)

Thanks anyways.
Tags
Grid
Asked by
Neo
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Neo
Top achievements
Rank 1
Share this question
or