Mendix 6 Datagrid With Fixed Header

0
Hi ,I want to display fixed header for a datagrid  where user can scrolll down the grid,but Header freezes on its position.I have used css style Overflow:scroll,but it only adds a scrollbar ,does not freeze the header row. Is there any way to do this in the existing mendix datagrid using CSS? Or any widget is avilable in appstore which supports this datagrid feature?
asked
4 answers
2

You're looking for sticky headers, which is done with the CSS "position:sticky". Direct CSS support isn't quite there yet in modern browsers (actually recently removed from Chrome due to a bad implementation). 

That said, you can achieve this by using JavaScript or a JavaScript CSS polyfill as discussed in this article.

answered
0

You could also try setting a fixed height for the table contents height.  Add something like this to your theme:
 

.grid500high .mx-datagrid-content-wrapper {
    max-height: 500px;}

.grid500high .mx-grid-content {
    overflow-y: scroll;
}

Then set your table class to grid500high

 

answered
0

Anyone have a fix / javascript polyfill for this for datagrids in Mendix 7?

answered
0

Also very interested for 7.23.7!!!!

answered