Need a special offer?Find out if your project fits.
+

reportchange and getCell

Resolved
Accobat Development asked on August 9, 2021

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

3 answers

Public
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: https://jsfiddle.net/flexmonster/1dx2uc0g/.
 
Please let us know if this helps.
 
Best regards,
Mykhailo

Public
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.
 
Regards,
Mykhailo

Public
Accobat Development August 18, 2021

Hi Mykhailo,
 
Yes this works for me.
 
/Jimmy

Please login or Register to Submit Answer