Data Grid Appearance - Wrap Text

0
Hi I have a data grid with large strings in it. Currently these do not fit the column and i have to hover over them to see all the text.  Is there a way to use CSS to wrap this?    
asked
2 answers
1

Hi,

just wanted to mention, that the solution of Remco Snijders didn’t work for me, I had to do a small adjustment.

Following code worked:

.wraptext .mx-datagrid-data-wrapper { 
text-overflow: initial !important; 
white-space: normal !important;
}

After putting this code in your custom.css, you have to maintain “wraptext” as a class of your data-grid column.

I am using Mendix Modeler 7.22

Best regards,

Ömer 

answered
0

You can put a class on the column, which will give that class to every <td> element within that column.

In your CSS file say:

td.class { 

text-overflow: initial; 
white-space: normal;

}

 

answered