PDA

View Full Version : [CLOSED] Summary Column on Nested GridPanel



redi
Jul 17, 2014, 9:51 AM
Hai,

I have some problem with column with nested grid plugin. How can i get summary column in parent grid? Or somebody can give me an example to do that. The summary is from child column in nested grid. I was see from example here http://examples2.ext.net/#/GridPanel/Miscellaneous/Grid_TotalRow/ but i want it that in nested gridpanel. I attaching image for what i'm talking about

http://forums.ext.net/attachment.php?attachmentid=13621&stc=1.

Thanks for your help.

Daniil
Jul 17, 2014, 3:59 PM
Hi @redi,

I think there is no built-in functionality to achieve that.

My first thought is just to load the summary data to the Store of the parent GridPanel. I mean that you probably can calculate everything on server side, cannot you?

redi
Jul 18, 2014, 2:01 AM
Hai Danill,

Thanks for your reply. Yes i could do the calculate from server side when i load data from database and store it to store. But in my case, that the grid can be edited when the form position in Edited Form. When i input production column in child the Production Column in parent grid auto fill that column with calculation from child grid. Can it be do in javascript ?

Daniil
Jul 18, 2014, 2:15 PM
I think it is possible.

From an inner GridPanel's Edit event handler, you can access a parent record by:

<Edit Handler="var parentRecord = e.grid.record;" />