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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.