Skip to main content
November 30, 2022
Question

Add sum row into read-only grid

  • November 30, 2022
  • 2 replies
  • 0 views

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
November 30, 2022

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
November 30, 2022

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