IDEMPIERE-2898 UX: Field only showing title at header on grid

This commit is contained in:
Diego Ruiz 2015-10-22 11:20:58 -05:00
parent 9d0d7f9b5f
commit d0ae7d4ea4
1 changed files with 6 additions and 1 deletions

View File

@ -502,7 +502,12 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace, IFi
int colindex =tableModel.findColumn(gridField[i].getColumnName());
column.setSortAscending(new SortComparator(colindex, true, Env.getLanguage(Env.getCtx())));
column.setSortDescending(new SortComparator(colindex, false, Env.getLanguage(Env.getCtx())));
//IDEMPIERE-2898 - UX: Field only showing title at header on grid
if( gridField[i].isFieldOnly() )
column.setLabel("");
else
column.setLabel(gridField[i].getHeader());
if (columnWidthMap != null && columnWidthMap.get(gridField[i].getAD_Field_ID()) != null && !columnWidthMap.get(gridField[i].getAD_Field_ID()).equals("")) {
column.setWidth(columnWidthMap.get(gridField[i].getAD_Field_ID()));
} else {