Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Wrap text is not working with read only mode in grid

SA-5225

Summary



Application screen has a section within a grid.
The section has a textarea where wrap text is enabled.
At runtime if text is entered without any break ( <br>) or enter /new line </n> the words are not getting wrapped up properly at read only mode.




Steps to Reproduce



1.Create a grid
2. Put a text area control on one of the cell of the grid
3. Add some long content on it without breaking the line


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. The
white-space style attribute in the grid under read only was getting defaulted to noWrap thereby causing the issue.


Resolution



Follow the below step to resolve the issue :


1) The TextArea should be given a new class name, say 'dataValueWrite.readOnlyContent' , under "Cell read-only classes" field in the "Presentation tab" of its property panel. Find below screenshot


                   

2) Add the below style block in the userworkform / custom stylesheet of the application --

.readOnlyContent{
white-space: normal;
}

 

Published January 31, 2016 - Updated October 8, 2020

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us