How can I add a specific data to an element added by DefaulContent of the DataTable?

How can I add a specific data to an element added by DefaulContent of the DataTable?

CDuffman25CDuffman25 Posts: 2Questions: 1Answers: 0

Hello everyone, apologies if something similar has already been solved in another post, what I want to do is that when obtaining the data with AJAX from a PHP file, that returns me a data object from which I want to take data from a column specify and add it in HREF attribute of tag A in defaulContent, how can I achieve that?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,309Questions: 26Answers: 4,771
    Answer ✓

    Use columns.render to dynamically create a link using row data. There is an example in the docs.

    Kevin

  • CDuffman25CDuffman25 Posts: 2Questions: 1Answers: 0

    Thaks kthorngren, It worked perfectly for me, I should have read the documentation better, again thanks for the help!

    regards.

This discussion has been closed.