Get Free Trial

reportchange and getCell

Jimmy asked on August 9, 2021

When using getCell in the reportchange event it returns the cell from before the change:
In the jsfiddle if you expand the color of Canada you get the total of USA color using getcell(2,1) I would expect to get the price of blue under Canada.

3 answers

Mykhailo Halaida Mykhailo Halaida Flexmonster August 10, 2021

Hi Jimmy,
Thank you for posting your question.
You can use reportchange combined with the aftergriddraw event to ensure the handler is executed after the grid is rerendered. With this approach, the retrieved value will indeed fall under the Canada member.
Here’s a modification of your sample showcasing this:
Please let us know if this helps.
Best regards,

Mykhailo Halaida Mykhailo Halaida Flexmonster August 18, 2021

Hi Jimmy,
Just checking in to ask if you’ve found our response helpful. Does the suggested approach work for you? 
We’d be happy to hear your feedback.

Jimmy August 18, 2021

Hi Mykhailo,
Yes this works for me.

Please login or Register to Submit Answer