# \[Feature\]Lock column from scrolling in Table component

**URL:** <https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296>\
**Category:** Ignition Early Access\
**Created:** [October 22, 2018, 2:04pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296 "2018-10-22T14:04:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [October 22, 2018, 2:04pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/1 "2018-10-22T14:04:15Z")

</div>

Will the table component in perspective have the ability to lock columns from scrolling left and right? That would be a nice feature to have, especially for mobile viewing. We often have a column with a device name on the left and then values to the right of that leftmost column. It would make it much easier to view values in the tables if we can lock columns from scrolling.

Is something like this possible?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 23, 2018, 3:22pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/2 "2018-10-23T15:22:21Z")

</div>

Would you expect the column locking to be a fundamental part of the table’s configuration (e.g. column 0 is locked for everyone, always) or would you expect the user at runtime to lock and unlock columns at will?

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [October 23, 2018, 10:48pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/3 "2018-10-23T22:48:28Z")

</div>

I would say being able to lock/unlock at runtime would be ideal… but just having the option period would be a big help. I am sure many users display data in a table format with an identifying name in the left hand column. Being able to scroll to the right and not losing that identifying column, especially on smaller screens wold be extremely useful.

This is a crude example of what I am after, but we would also like the ability to sort the columns, which isn’t presented in this example.

[https://jsfiddle.net/zinoui/BmLpV/](https://jsfiddle.net/zinoui/BmLpV/)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [October 23, 2018, 11:34pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/4 "2018-10-23T23:34:55Z")

</div>

Yeah, I get it. We’re working on the table component right now, actually, and column locking is in there as a runtime option, available currently by Alt-double-clicking on the header. We’re still thinking about how to activate it on mobile.

---

<div class="post-metadata">

**Author:** ![WillMT10](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@WillMT10](https://forum.inductiveautomation.com/u/WillMT10)\
**Post date:** [October 24, 2018, 12:04am UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/5 "2018-10-24T00:04:09Z")

</div>

It would be great if there was a way to set the column lock from the table configuration in the designer (or even a simple initialization script on page or component load) and the user could override it in runtime - if they want. Since most tables we use show daily data for the past X months, users are often asking me to “freeze” the date column so they don’t have to scroll back and forth to see what date they are looking at.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [October 24, 2018, 12:38am UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/6 "2018-10-24T00:38:36Z")

</div>

Thanks Carl. It would be great if you could get something working.🙂

---

<div class="post-metadata">

**Author:** ![c-w-t](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@c-w-t](https://forum.inductiveautomation.com/u/c-w-t)\
**Post date:** [December 6, 2019, 6:08pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/7 "2019-12-06T18:08:01Z")

</div>

Is the Alt + doubleclick still implemented? I have a Mac, and it doesn’t work with either of my keyboards using the Option (alt) key and doubleclick. Maybe there is a setting that needs to be enabled I’m missing.

---

<div class="post-metadata">

**Author:** ![Rusty](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rusty/32/19859_2.png) [@Rusty](https://forum.inductiveautomation.com/u/Rusty)\
**Post date:** [August 21, 2020, 3:14pm UTC](https://forum.inductiveautomation.com/t/feature-lock-column-from-scrolling-in-table-component/20296/8 "2020-08-21T15:14:25Z")

</div>

Is this option available for Vision tables?
