Hi,
I am looking into couple of forums which talks about filter setting, filter expressions, however, solution which I am looking for is not available.
Problem:
1.I have multiple columns on my grid. One of them is Hyperlink column e.g. Employee Name
2. Now I am filtering on particular column, e.g. Department and storing that value into session, as I can click on employee name hyperlink to redirect to employee profile page.
3. Now when I again visiting to grid page, I am using following line of code:
4. This is filtering properly but, filter text boxes are black, which suppose to load with filter expression value.
5.I got following line of code which is used to show filter value into textbox.
but I dont want to use this. I want to read the string which is stored in session and load values. Because this is used when you know on which column filter is applied. But in my case, in session variable I dont know, on how many columns filter applied and what is their respective values.
I will really appreciate your help.
Avinash
I am looking into couple of forums which talks about filter setting, filter expressions, however, solution which I am looking for is not available.
Problem:
1.I have multiple columns on my grid. One of them is Hyperlink column e.g. Employee Name
2. Now I am filtering on particular column, e.g. Department and storing that value into session, as I can click on employee name hyperlink to redirect to employee profile page.
Session[
"FILTER_EXPRESSION"
] = reportingGrid.MasterTableView.FilterExpression;
3. Now when I again visiting to grid page, I am using following line of code:
reportingGrid.MasterTableView.FilterExpression = Session[
"FILTER_EXPRESSION"
].ToString();
4. This is filtering properly but, filter text boxes are black, which suppose to load with filter expression value.
5.I got following line of code which is used to show filter value into textbox.
GridColumn gc = reportingGrid.MasterTableView.GetColumnSafe(
"DepartmentName"
);
gc.CurrentFilterFunction = GridKnownFunction.Contains;
gc.CurrentFilterValue =
"Finance"
;
but I dont want to use this. I want to read the string which is stored in session and load values. Because this is used when you know on which column filter is applied. But in my case, in session variable I dont know, on how many columns filter applied and what is their respective values.
I will really appreciate your help.
Avinash