Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
styling child grid rows
posted

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 grid
has    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 correctly
Here 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.

Parents
  • 8920
    Offline posted

    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......

    whdg_LoadOnDemandEdit01_basic.rar
Reply Children