Hello, I am running I am having trouble with refreshing the data inside of my grid after the data changes. I made a separate refresh button that when clicked queries my database and returns the new set of data to the grid. The problem is when I hit the refresh button it does not remember the filters/sorts of the original data it just returns the new data in unsorted order. I want the sorts/filters to be maintained after I refresh the radgrid. What is the best way to do this? Thanks
Right now I have this
protected void imgRefresh_Click(object sender, ImageClickEventArgs e)
{
// Queries the database to get any changes
EntitySearchResult = _helper.RepopulateSearchEntityResults(UserID, FacilityId, Request.Cookies, UIConfig.GlobalConfiguration.MaxRecordsToReturn);
// Renders Data to appear in rad grid
DisplayResults();
ramGrid.ResponseScripts.Add("top.HideLoading();");
}
How can I keep the sorting/filtering of my original data when ir un this function?
Right now I have this
protected void imgRefresh_Click(object sender, ImageClickEventArgs e)
{
// Queries the database to get any changes
EntitySearchResult = _helper.RepopulateSearchEntityResults(UserID, FacilityId, Request.Cookies, UIConfig.GlobalConfiguration.MaxRecordsToReturn);
// Renders Data to appear in rad grid
DisplayResults();
ramGrid.ResponseScripts.Add("top.HideLoading();");
}
How can I keep the sorting/filtering of my original data when ir un this function?