how to open a specific detail row using array of index row ?

how to open a specific detail row using array of index row ?

jasieljasiel Posts: 6Questions: 2Answers: 0

hi

i'm try to open a detail row using array of index row , but i need all detail row but I need the detail rows that are not in the Array to be closed in case they are expanded.

Answers

  • kthorngrenkthorngren Posts: 21,154Questions: 26Answers: 4,919

    You can use row().child.show(). There is an example using a row click. The example uses this as the row selector. You can replace this with a row-selector that meets your needs. The docs have lots of examples.

    How your "array of index row" maps to one of the row-selector options is hard to say without actually seeing an example with your data and what the contents of the array is. Please provide a test case showing what you have.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • jasieljasiel Posts: 6Questions: 2Answers: 0

    hi

    my array only contains numbers , this numbers are the index row value

  • kthorngrenkthorngren Posts: 21,154Questions: 26Answers: 4,919
    edited August 2019

    One of the row-selector options is "integer - Row index selector". According to the docs you can pass an array of integers to select the rows you want. Have you tried that?

    If you want multiple rows make sure to use the rows() API.

    Kevin

This discussion has been closed.