Hi team,
I want to make table header as fixed while scrolling the records. I have applied one css class to the container but it does not work as I am expecting. Can anyone check my oml and let me know what needs to be change in that class.
Before scrolling,
After scrolling,
Thanks in advance.
Hi Ajit,
To make it work, follow the below mentioned changes in your solution:
CSS Snippet:
.tbl-cntr { height: 400px; overflow: auto; } .sticky-header { position: sticky; top: 0px; }
1) Add "tbl-cntr" style class in the wrapper container
2) Add "sticky-header" style class in the table Style Header
Demo Screen: TableFixedHeaderTask
Refer to the attached oml.
Kind regards,
Benjith Sam
Thanks.
I will try above changes.
Hi Benjith,
Thanks for the solution.
It is working fine for header but when I put dropdown in status column then its overlapping on header while scroll down.
on browser,
Is there any alternative way to make it proper ?
Just made the small changes in CSS to avoid the overlapping of dropdown.
.sticky-header {
position: sticky;
top: 0px;
z-index: 5;
}
Thanks. It has been resolved.
You're welcome. Glad to know you got it solved :)
Thank you for sharing your final solution.
https://www.outsystems.com/forge/component-overview/10056/scrolltable
Thanks