Skip to main content
New Participant
Nov 30, 2022 8:26 AM UTC
Question

Add sum row into read-only grid

How can I add a row that calculates all the rows above:

id number
1 20
2 30
sum 50

something like this.

tnx

2 replies

harshitb6843
Brainy
Nov 30, 2022 8:34 AM UTC

In the read only grid, its a bit tricky as you have to modify the data property. But if you can switch to an editable grid, then you can just create a gridRowLayout() outside the loop to show the sum using sum() function and passing the relevant property from the variable that you are iterating on. 

ranjiths050336
Inspiring
Nov 30, 2022 9:27 AM UTC

Try to Append the map of Sum and use it on grid.