This is a migrated thread and some comments may be shown as answers.

How To Add Row at Bottom of Kendo Grid on Enter Keypress

2 Answers 292 Views
Grid
This is a migrated thread and some comments may be shown as answers.
deshini
Top achievements
Rank 1
deshini asked on 20 Jun 2016, 12:05 PM
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:bhuybhub
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code: vghv gh gh
0
down vote
favorite
We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

Tab between cells
Automatically advance to the next row when tabbing off the last cell in a row.
Automatically add a new row when tabbing off the last cell of the last row.
However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

We use Kendo Grid for heads down data entry in an accounting application. We need the grid to behave similar to QuickBooks. Specifically, users should be able to:

  1. Tab between cells
  2. Automatically advance to the next row when tabbing off the last cell in a row.
  3. Automatically add a new row when tabbing off the last cell of the last row.

However, we're having difficulty achieving this behavior. The last cell on the last row does not get saved before adding a new row to the bottom of the grid. If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to tab through an extra, needless column which is unacceptable. The user needs to be able to enter and tab with new rows being added automatically. Here's the code:

2 Answers, 1 is accepted

Sort by
0
deshini
Top achievements
Rank 1
answered on 20 Jun 2016, 12:18 PM

We use Kendo Grid for data entry in an accounting application. we have four columns in grid. We need the grid to navigate to next input cell within the same row on enter keypress.

Move to next cell on  'enter' keypress

Automatically advance to the next row when pressing enter on the last cell in a row.

Automatically add a new row when pressing enter on the last cell in a row.

However, we're having difficulty achieving this behavior.

The last cell on the last row does not get saved before adding a new row to the bottom of the grid.

If, however, we add a bogus column as the last column the proper behavior is achieved, but you have to navigate through an extra, needless column which is unacceptable. The user needs to be able to navigate on enter with new rows being added automatically.

0
Boyan Dimitrov
Telerik team
answered on 22 Jun 2016, 07:41 AM

Hello deshini,

What is the current logic for adding a new row when "enter" key is pressed when user is finished typing the last cell of the last row? If the input element is bound to the data item using MVVM the input's change event will update the model. Given this the change event of the input should be triggered before adding a new row.

Regards,
Boyan Dimitrov
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Grid
Asked by
deshini
Top achievements
Rank 1
Answers by
deshini
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or