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
925
Template Add Row problem when using enter to commit a row
posted

I've got a grid with:

  • AllowAddNew set to TemplateOnBottom
  • Added a KeyActionMapping so that Enter commits the row
  • BeforeRowUpdate handler that sets cancel=true
  • RowUpdateCancelAction set to RetainDataAndActivation
  • InvalidValueBehavior set to RetainValueAndFocus

The odd behavior I'm experiencing is that the row being added does indeed retain focus, however a new TemplateAddRow is being added and initialized incorrectly. The expected behavior is the same as when an update is triggered by trying to change the row (the row retains focus and the template add row is left unaffected)

Things I've tried:

  1. Different AllowAddNew settings - it seems that it's only the Template modes have the issue, fixed add rows work fine
  2. Cleared all other KeyActionMappings - doesn't fix the problem
  3. Handling KeyUp does sort of seem to work... but I don't see why I should have to do this.

Any ideas?