Thanks for your response! I was also using pyExpanded property but wanted to understand if there is any OOTB feature.
Requirement is pretty simple. We have some repeating grids on the screen and then need to be expanded or collapsed based on some conditions. So I was looking for some OOTB feature like "Expanded when or Collapsed when" but couldn't find it.