Hello, I am using the Outsystems Data grid in my reactive application. I have a row cell that contains 3 lines of text, separated with newline() instead of one line. I tried to increase the height of all rows, but still, I must click on the cell to make the data visible. Is there anything to make all the lines visible without requiring clicking on every cell that have more than one line of text? Ideally, I want to word wrap the text globaly in the exported excel file from data grid.
Hi @Savvas Savva
This seems to be the same scenario solved here.Try to look closely at the forum before opening a new post.
Cheers,GM
Thank you for your reply, and sorry for missing this out! Actually this solution is complete and works each time!
Dear @Savvas Savva .
Would you like to share your oml files?
On GridInitalize, using below JS will solve word-wrap. May be you will be needing adjust width based on your business,
//Set the word-wrap for all the columnsOutSystems.GridAPI.GridManager.GetGridById($parameters.GridWidgetId).provider.columns.forEach( function(col) { col.wordWrap = true;});
// Adjust row size
var myGrid=OutSystems.GridAPI.GridManager.GetGridById($parameters.GridWidgetId);myGrid.provider.autoSizeRows()
Thanks! I similar script as described here . Also, this script also works in most cases. I also used the wrap text column action on after fetch in some columns. Also, you can include the col.align = "center"; // To Set alignment to center.