This example demonstrates why DevExpress ASP.NET WebForms containers have to re-create their hierarchy on postbacks. The example contains two ASPxRoundPanels. The View property of both panels is changed on the first page loading. The value is saved in ViewState. On every next page postback, the value is applied to the corresponding property.
The second ASPxRoundPanel does not re-create its hierarchy after ViewState is applied (EnableHierarchyRecreation="false") and its layout gets broken after a postback.
See the Why DevExpress ASP.NET control containers re-create their child control hierarchy during the same page request article to learn more about this topic.
↧
Why DevExpress ASP.NET containers re-create their child control hierarchy
↧