# Perspective Table - dynamic column width and hiding rows

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-dynamic-column-width-and-hiding-rows/52129>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 19, 2021, 7:42pm UTC](https://forum.inductiveautomation.com/t/perspective-table-dynamic-column-width-and-hiding-rows/52129 "2021-10-19T19:42:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkramer](https://avatars.discourse-cdn.com/v4/letter/j/35a633/32.png) [@jkramer](https://forum.inductiveautomation.com/u/jkramer)\
**Post date:** [October 19, 2021, 7:42pm UTC](https://forum.inductiveautomation.com/t/perspective-table-dynamic-column-width-and-hiding-rows/52129/1 "2021-10-19T19:42:34Z")

</div>

Are the column widths in a Perspective table limited to using pixels as the units, or is there some way to use a percentage of the table width. I’d like the column widths to be as dynamic as the rest of the element sizing on the view, but I don’t see any way to use %. 2nd question - is there any way to hide certain rows in a table based on the value of a column in a row? Thanks in advance for the help.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 22, 2022, 12:43pm UTC](https://forum.inductiveautomation.com/t/perspective-table-dynamic-column-width-and-hiding-rows/52129/2 "2022-02-22T12:43:28Z")

</div>

A bit late but ...

You can set the columns to relative widths by setting the `props.columns.n.width` parameters to something like

```python
- columns
  - 0
    - width: 1
  - 1
    - width: 4
  - 2
    - width: 2

```

to give relative widths of 1, 4 , 2.

Specifying strictWidth changes the way it works:

```python
- columns
  - 0
    - width: 1
  - 1
    - width: 4
  - 2
    - width: 120
    - strictWidth: true

```

This will force column 2 to 120 pixels (although I didn't specify 'px' in the width) and columns 0 and 1 will adjust to fill the rest of the available space in a ratio of 1:4.
