Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
KeyDown event of default NumericEditor not fired when grid does not contain rows
posted

I use the WebDataGrid.InitializeDefaultEditors.

In my event handler I have written the following code:

void OnInitializeDefaultEditors(object sender, DefaultEditorsEventArgs e)
{
   e.NumericEditor.Buttons.SpinOnArrowKeys = false;
   e.NumericEditor.ClientEvents.KeyDown = "j_onNumericEditorKeyDown";
}

The SpinOnArrowKeys is succesfully disabled, but the KeyDown event is not fired WHEN the grid does not contain rows.

Parents
No Data
Reply
  • 14049
    Offline posted

    Hello,

    The editor appear when a cell is in edit mode. May be I am missing something, but how would an editor's keydown event be fired if there is no cells to edit? Can you describe your scenario a bit further? Thanks.

Children
No Data