Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaScript code for text wrapping in interactive grid on Oracle Apex not working

KatReedFeb 28 2018 — edited Feb 28 2018

I am currently working in Oracle Apex 5.1.2 and I am having trouble with trying to make the text in the columns of an interactive grid capable of wrapping when the column becomes too narrow. I found the following code on multiple websites, and when I use it on Apex version 5.1.4 it works perfectly, but it's not working on version 5.1.2 and I don't know why.

I put the following code in the "JavaScript Code" section of one of the columns in the interactive grid:

     function(config) { 
          config
.defaultGridColumnOptions = { cellTemplate: '<div class="wrap-cell">&COL_NAME.</div>' };
    
return config;}

Then I put the following code in the "Inline" CSS section for the page:

     .wrap-cell { 
          max-height
: 64px;
          white-space
: normal;
          overflow
: hidden; }

When I run the page, the text in every row of that column actually disappears, but when I double click on one of the cells in that column then an edit box for that cell pops up and the text is there (and seemingly wrapped), but when I click out of the edit box the text disappears again.

Anyone have any ideas?

Thank you in advance.

This post has been answered by Pierre Yotti on Feb 28 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2018
Added on Feb 28 2018
5 comments
2,583 views