Caption not visible on Data Grid

0
A very strange n small problem is coming on the data grid. Caption  is not visible when i scroll down the page. Per page number of rows is set to 500 because of huge data.I want to see the column header when i scroll down. Can you please tell if any style can be used or any other useful tip ?
asked
3 answers
1

Hi Rohit, 

 

First thing that comes to my mind - as I don't think there's a really easy solution (but I'd love to be wrong on this) - is to delete the column headers in your datagrid and create a table with the same column widths above your datagrid, with the header names. You can give that table a fixed position on your page and put your datagrid in a div with a fixed height + overflow-y: scroll. 

Goodluck! And I'm looking forward to other answers to this problem :) 

 

Loet

answered
1

Another option might be to use the datatables widget, its a bit more work to configure but has a infinte scroll option!

answered
0

Depending on the way your page is constructed, it could be done with default Mendix functionality. The only but it: your datagrid needs to be the first item on your page or it should be placed in a tabcontainer which is the most outer item on your page, without anything else wrapping around it.

These days new pages (since Mendix 5.18) always get a container around them when you first create them from the Modeler. If you don't need it and have the possibility of removing them so that your datagrid is the only thing on your page, this should work out of the box.

 

 

answered