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

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.
This discussion has been closed.
Answers
You can use
row().child.show()
. There is an example using a row click. The example usesthis
as the row selector. You can replacethis
with arow-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
hi
my array only contains numbers , this numbers are the index row value
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