474
Views
7
Comments
Solved
Table header should be fixed while scrolling the table records
Application Type
Reactive

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.

Dynamic_Scroll_Demo.oml
2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

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

Dynamic_Scroll_Demo.oml
2025-04-17 05-42-16
Ajit Kurane

Thanks.

I will try  above changes.

2025-04-17 05-42-16
Ajit Kurane

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 ?

Thanks.

Dynamic_Scroll_Demo.oml
2025-04-17 05-42-16
Ajit Kurane
Solution

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.

2021-03-18 21-03-15
Benjith Sam
 
MVP

You're welcome. Glad to know you got it solved :)

Thank you for sharing your final solution.


Kind regards,

Benjith Sam

2025-04-17 05-42-16
Ajit Kurane
Solution

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.

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

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

Dynamic_Scroll_Demo.oml
2025-04-17 05-42-16
Ajit Kurane

Thanks.

I will try  above changes.

2025-04-17 05-42-16
Ajit Kurane

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 ?

Thanks.

Dynamic_Scroll_Demo.oml
2025-04-17 05-42-16
Ajit Kurane
Solution

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.

2021-03-18 21-03-15
Benjith Sam
 
MVP

You're welcome. Glad to know you got it solved :)

Thank you for sharing your final solution.


Kind regards,

Benjith Sam

2022-03-05 18-29-11
Newton Monroe

https://www.outsystems.com/forge/component-overview/10056/scrolltable

2025-04-17 05-42-16
Ajit Kurane

Thanks 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.