Scenario:Parent grid has several child grid loaded on demand
in initializeRow event parent grid has some e.Row.CssClass = "SpaceRow"; base on some values and it works fine..Loaded on demand child gridhas IslandGrid.InitializeRow += new InitializeRowEventHandler(islnd3_InitializeRow);in the RowIslandsPopulating event and islnd3_InitializeRow get fired when the child grid get expanded and all colors assign though css displayed correctlyHere the issue : When child grid get edited all colors disappear on postback, and it happening for child grid only, parent grid get colored on postback fine. Apparent reason : on postback for parent grid initializeRow get fired, but in case of child grid it does not...Please advise.
Hi Mcseidel,
You have opened a support ticket for this. We can continue our communication around this issue through the ticket.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/supportv
Band is a collection not an array so the expr. ...band[0] seems like not working.
Also the problem as shown in working attached demo is that InitializeRow event not getting fired after initial child grid expantion. Can you check sample demo and advise what exactly should be corrected there
You need to set the Band Level before you add the grid to the collections so it can be saved in the ViewState.
This should be something like
ContainerGrid childGrid; if (row.RowIslands.Count == 0) { childGrid = new ContainerGrid(); /*******************************************/ /* Have to set the Band and Level before adding the * grid to the collection so it can be saved in viewstate /*******************************************/ childGrid.Level = 1; childGrid.Band = whdgChargePayments.Bands[0]; row.RowIslands.Add(childGrid); } else { childGrid = row.RowIslands[0]; }
ContainerGrid childGrid;
if (row.RowIslands.Count == 0)
{
childGrid = new ContainerGrid();
/*******************************************/
/* Have to set the Band and Level before adding the
* grid to the collection so it can be saved in viewstate
childGrid.Level = 1;
childGrid.Band = whdgChargePayments.Bands[0];
row.RowIslands.Add(childGrid);
}
else
childGrid = row.RowIslands[0];
If you need any further assistance do no
http://es.infragistics.com/support
Demo attached :
Child grid has two red rows, parent has two green rows... when child grid expanded row are colored, after amount edited color dissipated ( initialize row did not fired ) , although if amount on parent grid edited rows still colored and if colorless child grid collapsed, parent grid get edited and same child grid expanded and initialize row get fired again......