Hi,
i had the same problem and solved it with this:
.table .table-content .th:nth-of-type(1){
position: sticky;
top: 0;
left: 0;
z-index: +2; // to be visible while scrolling down
background-color: #fff;
}
.table .table-content .th:nth-of-type(2){
position: sticky;
position: -webkit-sticky;
top: 0;
left: 6.4em;
z-index: +2;
background-color: #fff;
}
.table .table-content .td:nth-of-type(1){
position: sticky;
position: -webkit-sticky;
left: 0;
z-index: +1;
background-color: #fff;
}
.table .table-content .td:nth-of-type(2){
position: sticky;
position: -webkit-sticky;
left: 6.4em; //relative to parent object so this should be the same all the time
z-index: +1;
background-color: #fff;
}
Important is that you have to call header and cells in a column in a different way. The problem is that this works well just for the first two columns. afterwards this more or less hacky solution got problems with the resolution of different screens...
Any CSS experts that can help us with this one?
Hi Hannes
Thanks for the proposed solution. I will try to implement this for datagrid 2!
Kind regards
Kevin