we have the same issue. the length always return 0 in UCI.
We try to get the attribute from each row. But the forEach never executed.
var rows = formContext.getControl(xxx_SUBGRID).getGrid().getRows();
rows.forEach(function (row, i) {
var text = row.data.entity.getPrimaryAttributeValue();
});
Please help to fix the issue!
Thanks!