# Conditionally allow Table subview to expand/collapse

**URL:** <https://forum.inductiveautomation.com/t/conditionally-allow-table-subview-to-expand-collapse/81682>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 8, 2023, 9:13pm UTC](https://forum.inductiveautomation.com/t/conditionally-allow-table-subview-to-expand-collapse/81682 "2023-11-08T21:13:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YF129701](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/yf129701/32/60498_2.png) [@YF129701](https://forum.inductiveautomation.com/u/YF129701)\
**Post date:** [November 8, 2023, 9:13pm UTC](https://forum.inductiveautomation.com/t/conditionally-allow-table-subview-to-expand-collapse/81682/1 "2023-11-08T21:13:35Z")

</div>

There are component events `onSubviewExpand` and `onSubviewCollapse` on the Perspective table, but is there a way to prevent a certain Table row's subview from expanding?

I don't just want to prevent / allow all of the rows in a table, just certain row(s).

I have a table with orders and the subview contains more information on the order as well as a "Start order" button. I would like to prevent the subview from expanding if the order is already in a state other than "not started".

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [November 9, 2023, 1:48am UTC](https://forum.inductiveautomation.com/t/conditionally-allow-table-subview-to-expand-collapse/81682/2 "2023-11-09T01:48:41Z")

</div>

You can apply subview per row.

> [@\[Bug-1715\]Apply Subview to a Subset of Perspective Table Rows](https://forum.inductiveautomation.com/t/bug-1715-apply-subview-to-a-subset-of-perspective-table-rows/42817):
>
> Hi All, I’m working in Perspective, 8.0.16. Wondering if there is a way to apply the subview functionality in the Table component to a subset of rows. In the table below, for example, the Picking Area has a set of children areas to display, but the Merge Area doesn’t have any children. Is it possible to remove the icon and expand functionality just from the Merge row? Thanks.
