I’m using nestedRows
and notice that the row number in callbacks like afterChange
represents the visual row. So for example data like this:
[
{ d: "Fruit", __children: [{ d: "Apple" }, { d: "Orange" }, { d: "Pear" }],
{ d: "Car", __children: [...] },
{ d: "Etc", __children: [...] }
]
Which renders like:
+ Fruit
Apple
Orange
Pear
- Car
- Etc
If I modify the "Orange"
row I get a change with row of 2
. How can I correlate that back to my original source data, ie data[0].__children[1]
? The problem is that with expanding and collapsing I have no idea how to correlate the visual row to the source data row and child.