custom row show/hide details

custom row show/hide details

jesse32jesse32 Posts: 9Questions: 0Answers: 0
edited February 2012 in Feature requests
can i get the opposite of this?
http://datatables.net/release-datatables/examples/server_side/row_details.html
the master row being custom,and by pressing a button,show/hide a regular datatable grid.

the master row should be looking like this:

field1 | field 3 | field 5
field2 |field 4 | field 6
+
row1.......
row2........

Replies

  • allanallan Posts: 61,650Questions: 1Answers: 10,094 Site admin
    Sure - when you press your show/hide button to show the DataTable, just insert an HTML table as normal and call the $(...).dataTable() method on it. DataTables doesn't create where in the DOM it is, it will take an HTML table and enhance it anywhere.

    Allan
  • jesse32jesse32 Posts: 9Questions: 0Answers: 0
    i was thinking about that for detail part, BUT the main problem is
    how can i make the master part, the custom row (with 3 fields in one column/cell) ?
    in my example each row,contains 15 fields,and i want to group 3 fields per column ,so 3 fields /column and it will be 5 column
  • jesse32jesse32 Posts: 9Questions: 0Answers: 0
    so for that example in show/hide row details the 1st row i would like to have Render Engine and Browser fields in one column,and Platform and Grade fields in a second column of the master table.
    so,it's some kind of redrawing the format of the row...
This discussion has been closed.