I was able to resolve my issues by setting ajaxEnabled to false.
Thank you
I am adding this in the rowIslandsPouplating mehod but I get a script error when the child grid expand. Runtime Exception: TypeError: $IG[objName] is not a function
My code:
var child = new ContainerGrid();
e.Row.RowIslands.Add(child);
var selection = new RowSelectors
{
Enabled = true,
RowNumbering = false,
RowSelectorCssClass = "selector",
HeaderRowSelectorCssClass = "HeaderRowSelector"
};
child.Behaviors.Add(selection);
selection.RowSelectorClientEvents.RowSelectorClicked = "whdg1_RowSelector_RowSelectorClicked";
child.DataSource = dt;
child.DataBind();
Updating Main Grid.Maya, I looked at you sample and it does updates the main grid value as expected. But my scenario is different. I have problem updating main grid right after changes done to child grid in RowUpdating event. If event triggered by main grid then it is not a problem e.g. after line mr.Amount = 95000; executed I can see changes on the main grid, if I try to do the same in the child grid section of the same event it’s not working even if I DataBind main grid again. This is the place where mr.Amount = 35000; got executed. The issue that I do not know how to address is the following : MainGris get binded on the PageLoad that executed before RowUpdating event, so when value in the master source changed ( mr.Amount = 35000) it could be seen only on the next postback (after any other child grid get expanded). So somehow if the change occured in main grid and new value assign to underline source (mr.Amount = 95000) then changes can be seen, if event triggered by child grid then changes to main grid ( mr.Amount = 35000) can be seen only after another postback. Can you advise how to make mr.Amount = 35000 visible without postback.Project attachedThanks.
Hello mcseidel ,
Make sure that you make the changes for the parent grid directly to the WebHierachicalDataGrid instance. Otherwise the approach is the same.
I tested it by setting a value of 1 to the first row’s Amount column and it got recalculated and persisted as expected.
You can get the summary result from the SummaryCalculated event from the event args:
protected void whdg_SummaryCalculated(object sender, SummaryEventArgs e)
var value = e.SummaryValue;
}
You can’t directly access it fromthe behavior.
Please refer to the attached sample and let me know if you have any questions.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
The RequestFullAsyncRender did the job to persist updating the child grid I’m also trying to update parent grid with the child’s total amount value and need some help to sequence events :In the whdg_RowUpdating if I would add to your sample the following : islandType3Tbl.Rows[0][4] = 1300; then amount column get updated and persisted, and custom sum get recalculated, so it works perfect... now I’m trying to get this recalculated summary value and put it into the parent row, something like : ExhibitLR2MasterDS mDS = (ExhibitLR2MasterDS)Session["data"]; mDS.MasterTable.Rows[1][4] = 1201;where 1201 is the summary for the amount field in the child grid. Can you help me with the following :1. On the server side how to access summary value , seems like something as grid.Behaviors.SummaryRow...?? but what exactly ?2. What to do with parent grid right within whdg_RowUpdating so the parent row also would show new value and parent grid total get recalculated. I tried to do the same as for child grid ( clear datasource, get new one, etc. ) and it did not work. Can you advise and/or maybe update the your version of the site : whdg_LoadOnDemandEdit01_Modified.zip