dom t missing, no select possible on visible table...

dom t missing, no select possible on visible table...

LapointeLapointe Posts: 430Questions: 81Answers: 4

I just discover this evening why I could not select any row on a subtable...
The table is displayed, react to events, row can be selected via code, but none selection possible, because of... t was not in dom.

Replies

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923
    edited January 2021

    Not sure why that would matter. Here is a nested child Datatable example that dom: "t" is commented out and it works.
    http://live.datatables.net/sojoyahe/4/edit

    If you want help debugging please provide a test case showing what you are doing.

    Kevin

  • LapointeLapointe Posts: 430Questions: 81Answers: 4

    hi Kevin

    Thank for your answer.
    In my case I use 2

    <

    div> to show 2 separates editors as https://editor.datatables.net/examples/advanced/parentChild.html

    if not t in dom for child table, no possibility to select row, but they are shown
    Bob

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923

    if not t in dom for child table, no possibility to select row, but they are shown

    Are you saying you have something like dom: 'lf' without thet` and you can't select rows like this example?
    http://live.datatables.net/hokipeni/1/edit

    Its interesting the the table shows without the t. Is there a reason you don't want the t as part of the dom option?

    Kevin

  • LapointeLapointe Posts: 430Questions: 81Answers: 4

    hi @kevin
    yes dom was 'B' only (not lf), because a subtable and no need to paginate or other options, else delete and create buttons
    so while the table appears, I was not in search on a missing letter in dom definition, and could not explain why select was possible using code and no select possibility...
    As in your example, table is shown and no select is possible

    Thanks
    Bob

  • kthorngrenkthorngren Posts: 21,174Questions: 26Answers: 4,923

    I'm not clear why you don't want use t, ie, dom: "Bt". Is there a reason you don't want to use t?

    The dom docs state to use t to place the table element. Sounds like not using it has an affect in other areas of Datatables.

    Kevin

  • LapointeLapointe Posts: 430Questions: 81Answers: 4

    Hi @kevin
    In fact I use now Bt nor B... I was just searching why I could not select any displayed rows, and find it was because not t used :* :*

    Thanks

This discussion has been closed.