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

[Solved] RadGrid filter value not holding

1 Answer 172 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manoj Soni
Top achievements
Rank 1
Manoj Soni asked on 24 Dec 2009, 06:09 AM
Dear Sir/Madam,

i'm facing a bit problem related to RadGrid.

Explantion-: After filtering the value in RadGrid we can see the filter result after that i open a radwindow for a particular row id .
but when i closed the rad window the filter value of the RadGrid not holding.

Is it possible that we van hold that filter value when return the page.
please let me know it's very urgent..

Thanks & regards
Manoj Kumar Soni

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Dec 2009, 09:47 AM
Hi,

Are you by any chance rebinding the grid on window close ? When you invoke the Rebind() method of the grid implicitly/explicitly the values inside the filter boxes will be cleared as this action will reset their state.
In order to keep the values inside them, consider storing them in a HashTable (for example) using the UniqueName of the column as a key and the actual filter pattern inside the filter box as a value.  Prior to the rebind operation, traverse the columns in the grid (based on the stored unique names in the HashTable) and recover the filter criteria in each header filter.


You ca slo check out the help link below:
Saving grid settings on a per user basis






Thanks,
Shinu
Tags
Grid
Asked by
Manoj Soni
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or