Hi!, we've encountered with a problem when we use the grid's summary feature, along with the selectedOnly option set to true.
When there are no lines selected, all the lines are taken into account for summarizing, when should be the opposite.
This is because of the fact that the sum function provided to the aggregate column definition (custom sumDocumentLinesValues function, getting {sum, record} parameters) is always called. And since there is no way of knowing if the provided record is selected or not, we cannot modify it in order to know when to sum and when not.
export function sumDocumentLinesValues(column) {
return function (sum, record) {
sum += !record.isParent ? record[column] : 0;
return sum;
};
}
I really appreciate your help in this topic. Thank you so much in advance!