4 Replies Latest reply on May 27, 2009 10:53 AM by Miggl

    RemoveAllChildren() Behavior


      Hi All,


      I am clearing my container control (a Grid) of all child objects (GridRows) using removeAllChildren(), then in the same stroke adding new children. However, the behavior I am seeing is that all children get removed, even the new ones I added (the Grid has no rows when rendered).


      Is there something particular to the removeAllChildren() method? Does it execute delayed (i.e. does it trigger a garbage handler that runs at as the last thing prior to rendering)?


      I my order of processing is first to removeAllChildren(), then add new children using addChildAt().

      However, none of the children show up during rendering. If I comment out the line with removeAllChildren(), everything displays, however, the old rows are not removed.


      Any ideas what may be causing this?