How to use the Modal inside the Datatable?

How to use the Modal inside the Datatable?

sdiabsdiab Posts: 4Questions: 2Answers: 0

I am using datatable to fetch the Json data "columns": [{ "data": "STATUS_ID"}], and one of the columns is [View details].
On click on this view details button, the system should show information inside a Modal.

My problem is I am not able to change the ID of that modal depending on the Row Id I am selecting it.

Answers

  • kthorngrenkthorngren Posts: 21,171Questions: 26Answers: 4,922

    Maybe you can post the code you are using for the details button?

    Better yet a link to your page or a test case will allow us to see what you are doing so we can offer suggestions.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • sdiabsdiab Posts: 4Questions: 2Answers: 0

    Thank you Kthorngren, for your reply.

    I have change the work into another way to be solved, I used to call the same Modal every time but the information inside it will be changed depending on the ID of the row.

This discussion has been closed.