Close expanded row when expanding other row. #12059
Answered
by
jnm2377
kumaranubhaw
asked this question in
Help
-
I have list of rows in DataTable component. On clicking row I am fetching data for expanded view. |
Beta Was this translation helpful? Give feedback.
Answered by
jnm2377
Sep 8, 2022
Replies: 1 comment 1 reply
-
Hey @kumaranubhaw I think it is certainly possible to do this, though it will require a bit of custom logic in your implementation. I think you'll likely want to use the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kumaranubhaw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @kumaranubhaw I think it is certainly possible to do this, though it will require a bit of custom logic in your implementation. I think you'll likely want to use the
isExpanded
andonExpand
props, whereonExpand
you have some sort of logic that determines what other rows have theisExpanded
prop and set that to false.