Need examples for selected & show/hide child rows
Need examples for selected & show/hide child rows
The ideal behavior I'm trying to get is such that expanding an item makes it selected, and the child row is shown.. that's easy.
Closing the child row keeps the row selected - that's also easy.
BUT if you click to expand another item, the former child row should be hidden, and the newly expanded item should now be the only item selected..
The behavior should be such that I can only select one entry at a time, and I can only have one child row shown, for the selected item, at any point in time. I tried several things but short of iterating through the whole table I wasn't able to get this done effectively / elegantly / etc.. any pointers would be great.
Answers
Hi @getalex ,
Have a look at this example from this thread - it's auto closing children so only one is open at any time.
Cheers,
Colin