Completed
Last Updated: 20 Feb 2014 15:09 by ADMIN
ADMIN
Anton
Created on: 10 May 2013 05:56
Category: GridView
Type: Bug Report
5
FIX. RadGridView - the cursor does not work properly, when its value is "Cursors.SizeWE" and the mouse is moving over the GroupPanelElement
FIX. RadGridView - cursor does not work properly, when cursor has value "Cursors.SizeWE" and mouse is moving over GroupPanelElement.

Steps to reproduce:
1. On a gridview make sure that a column in grouped.
2. Place your mouse on a column split just below the grouped column.
3. The cursor icon changes to a SizeWE icon to let you know that you can resize the column, This is normal.
4. Now, move the mouse (with the cursor icon = SizeWE) to the grouped column just above.
5. Now the cusor gets stucked with this SizeWE icon and never goes away on this grid. Wathever you do now the icon stays showing as a SizeWE icon.

Work Around - create custom grid behavior and override OnMouseMove method.

    public class CustomGridBehavior : BaseGridBehavior 
    {
        public override bool OnMouseMove(MouseEventArgs e)
        {
             base.OnMouseMove(e);

             GridTableElement table = this.GetGridTableElementAtPoint(e.Location);

             if (table == null)
             {
                 this.GridViewElement.ElementTree.Control.Cursor = Cursors.Default;
                 return false;
             }

             return false;
        }
    }
0 comments