row gruping (hide sub.row)

row gruping (hide sub.row)

pakypaky Posts: 106Questions: 0Answers: 0
edited November 2009 in General
Hi allan, I have a table with grouped rows, how can I hide a row if the parent row has no child in the query result ?
In my grouped rows I add a function for add child .... but at start have no row child ... I still have to show the mother row.

fnRender function not useful :(

thanks

Replies

  • pakypaky Posts: 106Questions: 0Answers: 0
    here my table .... http://www.paskuale.it/dtable_forum_msg.jpg
  • pakypaky Posts: 106Questions: 0Answers: 0
    ... no solution ?
  • pakypaky Posts: 106Questions: 0Answers: 0
    edited November 2009
    I have the same effect of row "All others" ... on this sample page http://datatables.net/examples/advanced_init/row_grouping.html (third page of the pagination)

    My query is a right join ... between the two tables if there is no line connected to the first, shows empty values .... causing my problem :(
  • allanallan Posts: 61,822Questions: 1Answers: 10,127 Site admin
    Hiding rows in DataTables is done by filtering the data set. There is no way (which is supported) to just drop a row from being displayed without filtering it out of the result set. So if you want to remove a row, you need to filter.

    Allan
This discussion has been closed.