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!

Interactive Grid: Wrap text for all columns

KirstenDec 3 2019 — edited Dec 3 2019

Hi all,

I try to add some code to wrap text for ALL columns of an Interacitve Grid without being forced to put some code to every column (Column => Advanced => Javascript Code).

I put the following code to IG => Attributes => Advanced => Javascript Code:

function(config) { 

  var colName;

  var gridColumns = config.columns;

  for (var i = 0; i < gridColumns.length;i++) {

      col_name = gridColumns[i].name;

      gridColumns[i].defaultGridColumnOptions={cellTemplate:'<div class="wrap-cell">&'+col_name+'.</div>'}  

  }       

  return config;

}

I added these two classes:

#static_id .a-GV-cell {

  height: 80px;

}

.wrap-cell {

  max-height: 64px;

  white-space: pre-line;

  overflow: hidden;

}

It works fine, but the hight of columns APEX$ROW_ACTION and APEX$ROW_SELECTOR is not adapted.

Has anybody a solution?

Kind regards,

Kirsten

(I use APEX 5.1.4.00.08)

Comments
Post Details
Added on Dec 3 2019
2 comments
6,388 views