IDEMPIERE-4835 Grid View: Implement optional hide empty column feature (#767)
refine auto hide rule for new row
This commit is contained in:
parent
d7c0ebf980
commit
7d01f41f35
|
@ -775,6 +775,13 @@ public class GridView extends Vlayout implements EventListener<Event>, IdSpace,
|
||||||
if (!Util.isEmpty(display, true)) {
|
if (!Util.isEmpty(display, true)) {
|
||||||
hideColumn = false;
|
hideColumn = false;
|
||||||
break;
|
break;
|
||||||
|
} else if (gridTab.getCurrentRow() == rowIndex && gridTab.isNew()) {
|
||||||
|
if (gridField[index].isEditable(false) && (gridField[index].isMandatory(false) || !Util.isEmpty(gridField[index].getVO().MandatoryLogic)
|
||||||
|
|| !Util.isEmpty(gridField[index].getVO().DisplayLogic)
|
||||||
|
|| !Util.isEmpty(gridField[index].getVO().ReadOnlyLogic))) {
|
||||||
|
hideColumn = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue