Queries |
Response | |
Edit Record
|
To edit a record in grid, use startEdit method of ejGrid. In startEdit method we need to pass the tr row element.
Find the code example:
| |
Delete Record |
In deleteRecord method we need to pass the primary key field name and JSON data as a parameter to delete a record in the grid.
Find the code example:
| |
The delete and edit button should show a 'row not selected popup' if the user presses it without selecting a row
|
To show a pop-up when the user press the edit or delete button without selecting a row, use getSelectedRows method of ejGrid.
In getSelectedRows method we can get the selected rows in the grid. Using that we check the condition and display the pop-up box.
Please check the above code example.
|