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
575
Creating a new row and focusing to the first cell of that row when enter is pressed or tab is pressed at the end of the row
posted

I need to be able to add a new row if the user presses enter, or a tab at the entd of the last cell. When the new row is added, the focus should be on the first row of the added row. 

 

I have added something like FixedAddRowOnTop for the AllowAddNew properties, but it does not add a new row on enter, if the new row is added the focus is not gone to the first cell of the row.

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    If AllowAddNew is set to FixedRowOnTop and I edit any field in the row and press Enter, the row is committed and a new FixedAddRow is created and the focus moves to the first cell in the row. If that's not happening for you, then something else in your code must be changing this behavior.

    Can you duplicate this in a small sample project?

Children