Completed
Last Updated: 16 Oct 2015 07:33 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 15 Sep 2015 14:05
Category: GridView
Type: Bug Report
0
FIX. RadGridView - missing scroll bar in Self-reference grid when the AllowSearchRow property is set to true and the user changes the cell value for a GridViewCheckBoxColumn
To reproduce: use the attached sample project. Follow the steps illustrated on the attached gif file.

Workaround: keep the vertical scrollbar value and maximum before modifying the child rows and restore them afterwards:

private void gridViewParameter_CellValueChanged(object sender, GridViewCellEventArgs e)
{
   if (e.Column.Name == "Select")
    {
        this.gridViewParameter.CellValueChanged -= gridViewParameter_CellValueChanged;

        GridViewRowInfo selectedRowinfo = e.Row;                  
        if (selectedRowinfo.HasChildRows())
        {
            int scrollValue = this.gridViewParameter.TableElement.VScrollBar.Value;
            int scrollMax = this.gridViewParameter.TableElement.VScrollBar.Maximum;
          
            this._UpdateUiState(selectedRowinfo.ChildRows, Convert.ToBoolean(selectedRowinfo.Cells["Select"].Value));
            
            this.gridViewParameter.TableElement.VScrollBar.Maximum = scrollMax;
            this.gridViewParameter.TableElement.VScrollBar.Value = scrollValue;
        }
        this.gridViewParameter.CellValueChanged += gridViewParameter_CellValueChanged;
    }
}

NOTE: after applying the workaround, there is annoying flickering illustrated on the Flickering.gif file which should be handled if possible.
0 comments