How to add new row that takes data from user in a datatable

How to add new row that takes data from user in a datatable

IshithaIshitha Posts: 2Questions: 1Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

Answers

  • IshithaIshitha Posts: 2Questions: 1Answers: 0

    How to implement add new row button in datatable.
    when user clicks add new row button then new row should be created and then the user manually enters data to the new row created.....!!!!

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954
    edited November 2022

    One option is to use Editor to create the new row.

    Otherwise you can create a form that when submitted calls a function that takes the form data and uses row.add() to add the new row. This example doesn't use a form but shows using row.add().

    Kevin

Sign In or Register to comment.