Read Datatable Values OnPost (Razor Pages)

Read Datatable Values OnPost (Razor Pages)

AllamAllam Posts: 2Questions: 2Answers: 0

i Add rows to the datatable using javascript from the frontend, once i click submit how to read the datatable rows in the post function ?

Answers

  • kthorngrenkthorngren Posts: 20,230Questions: 26Answers: 4,755

    i Add rows to the datatable using javascript from the frontend,

    How are you doing this?

    once i click submit how to read the datatable rows in the post function ?

    Use rows().data() with toArray() to get a Javascript array of the Datatables rows.

    Kevin

Sign In or Register to comment.