Hello,
When using getCell in the reportchange event it returns the cell from before the change: https://jsfiddle.net/x17mb2rv/
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.
/Jimmy
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: https://jsfiddle.net/flexmonster/1dx2uc0g/.
Please let us know if this helps.
Best regards,
Mykhailo
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.
Regards,
Mykhailo
Hi Mykhailo,
Yes this works for me.
/Jimmy