Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
480
Code behind Samples explorer samples?
posted

I am struggling to create subtotals for grouped break lines. I am looking at Samples Explorer and *almost* seeing what I want, but I don't see the code. I will be having some columns summed, and some columns would be a percentage calculation based on two other column values. Here I see a sum, and an average, but I have no idea how these are accomplished. In addition, it may not be possible, but I'd rather have the totals inside the salmon-colored 'SubTotals' line, rather than on a line below it, which just wastes space. But I haven't found the right magic combination - subtotals for the group, at the bottom, not the top, on the same line as the 'SubTotals' heading. But most of all, this question pertains to *how* one gets the columns to sum, average, and how I'd do a percentage. I presume that this sample is NOT iterating through all the rows and adding them up in code. I presume the grid can do that for me without my having to build a loop. If so, how? Thanks. 

Parents
  • 480
    posted

    Looks like the image was too big. Let's try again. I added the salmon coloring manually to indicate where I'd like the subtotals to go.

Reply Children