Completed
Last Updated: 17 Nov 2015 16:26 by ADMIN
ADMIN
Dimitar
Created on: 25 Jul 2013 03:49
Category: GridView
Type: Bug Report
1
FIX. RadGridView - calculator column - using Enter key on cell does not move the position on next row
To reproduce
- add Calculator column in the grid
- set the EnterKeyMode to EnterMovesToNextRow
- press enter when the cell is in edit mode.

Workaround:

-use custom GridDataRowBehavior like this:

class MyNewEnterBehavior : GridDataRowBehavior
{
    bool firstTime = true;
    protected override bool ProcessEnterKey(KeyEventArgs keys)
    {
        if (this.GridControl.IsInEditMode && this.GridControl.CurrentColumn is GridViewCalculatorColumn )
        {

            if (firstTime)
            {
                firstTime = false;
                return false;
            }
            firstTime = true;
            return base.ProcessEnterKey(keys); 
        }
        return base.ProcessEnterKey(keys);
    } 
}
0 comments