Creating a table within a table

Creating a table within a table

IMS_PeteIMS_Pete Posts: 21Questions: 4Answers: 0

Two part quick question:
Is it possible to render a HTML object inside a datatable cell such as a HREF tag or a

<TABLE><TR><TD>MyValue</TD></TR></TABLE>

Also, is it possible to create a new editable table (rather than editing itself) using https://datatables.net/examples/api/row_details.html

We have a new project coming up and I'm hoping these are possible with the current version.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,494Questions: 1Answers: 10,470 Site admin
    Answer ✓

    1) Yes - you can put any valid HTML you want inside a DataTable cell.

    2) Yes - you need to create a new DataTable and Editor instance for the inner table, which is quite possible to do in your callback to create the child row.

    Allan

  • IMS_PeteIMS_Pete Posts: 21Questions: 4Answers: 0

    Outstanding. Thanks very much.

This discussion has been closed.