Completed
Last Updated: 12 Oct 2015 15:37 by ADMIN
ADMIN
Dess | Tech Support Engineer, Sr.
Created on: 09 Oct 2015 12:03
Category: GridView
Type: Bug Report
1
FIX. RadGridView - find next/previous buttons do not navigate the results in the displayed order when sorting is applied
To reproduce:

1. Perform searching in the grid.
2. Sort by a random column.
3. Navigating with next/previous buttons do not navigate the results in the displayed order. Please refer to the attached gif file.

Workaround: clear the cache of the search row after sorting is changed:
private void radGridView1_SortChanged(object sender, Telerik.WinControls.UI.GridViewCollectionChangedEventArgs e)
{
    string searchCriteria = this.radGridView1.MasterView.TableSearchRow.SearchCriteria;
     
    FieldInfo fi = typeof(GridViewSearchRowInfo).GetField("cache",
        System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
    Hashtable cache = fi.GetValue(this.radGridView1.MasterView.TableSearchRow) as Hashtable;
    cache.Clear();
   
    this.radGridView1.MasterView.TableSearchRow.Search(searchCriteria);
}
Attached Files:
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments