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
785
Custom Summary on Child Band not Calculating until Parent Expanded
posted

Ok I "think" I might be going crazy...  I'm fairly sure that this was working before I upgrade my grids from 8.1 to 9.2, but I have a fairly complex grid and I'm not 100% sure when it broke.

I have a grid with two bands.  In the 2nd band I have some custom summaries that change the color of the same column in band 1 (Parent Row/column).

For the longest time it seems that the "child" band summaries were calculated even though they were not "visible".  So the parent cells were colored correctly.  Now the parent cells do not get properly colored until AFTER the parent row is expanded.   I have confirmed that the child subtotal is NOT getting calculated until the row expands.

So I guess my question is did something change where the summaries for child rows are NOT calculated until AFTER the row is expanded?   And if so is there anyway to force the grid to calculate all of its sub-totals even if they are not currently expanded?

I'm I going crazy???  I know this worked.... 

Dan

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi Dan,

    To my knowledge, summary calculations were always deferred until the value of the summary is requested by something in the code. In other words, they are calculated lazily when something in the code requests the value, and that includes when they are displayed on the screen.

    I suppose it's possible that this worked differently in a previous version of the grid, but if so, that was probably an anomaly.

    Either way, I'm pretty sure there are things you can do in the code in order to force the summary to be calculated when you want it to. But how you do that depends on the type of summary you are using. Are you using the grid's build in summary types or are you using a formula?

     

Reply Children