I have 2 image columns whose url's are based on the value of another column and an upper and loer limit that the user can select from a rad window.
The Rad window is called from the rad grid and when it closes it updates the image columns based on the values the user selects.
I also have server side code that shows or hides the filter row. At the end it calls the rebind() method to show or hide the filter row.
My problem is that when it does the rebind I lose the limits the user set as well as the image url's because it goes back to the way it was when it was originally loaded.
What can I do to get the grid to stay the way it was and show or hide the filter row?
Thank you.
The Rad window is called from the rad grid and when it closes it updates the image columns based on the values the user selects.
I also have server side code that shows or hides the filter row. At the end it calls the rebind() method to show or hide the filter row.
My problem is that when it does the rebind I lose the limits the user set as well as the image url's because it goes back to the way it was when it was originally loaded.
What can I do to get the grid to stay the way it was and show or hide the filter row?
Thank you.
| Protected Sub GrdPoints_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs) _ |
| Handles GrdPoints.ItemCommand |
| If e.CommandName = "PointsFilter" Then |
| If GrdPoints.MasterTableView.AllowFilteringByColumn = False Then |
| GrdPoints.MasterTableView.AllowFilteringByColumn = True |
| Else |
| GrdPoints.MasterTableView.AllowFilteringByColumn = False |
| End If |
| GrdPoints.MasterTableView.Rebind() |
| End If |
| End Sub |