This example demonstrates how you can dynamically add and remove controls within an ASPxCallbackPanel on callbacks. In this case, a ViewState is not applied so it should be disabled (the EnableViewState property is set to false). A hierarchy of controls, which have been created on callbacks, should be recreated on Page.Init event.
In this example, tabs with custom content can be dynamically added to an ASPxPageControl on callbacks. In order to recreate a hierarchy of dynamically created controls (within tab pages) the tab information is saved to a Session object.
Additionally, the example demonstrates the usage of ASPxPageControl.TabTemplate property to specify a tab text and a close button.
Question Comments
Added By: Mark Germishuys at: 2/3/2016 1:37:06 AM still removes previously created tabsAdded By: Artem (DevExpress Support) at: 2/3/2016 3:55:33 AM
Hello Mark,
To process your post more efficiently, I created a separate ticket on your behalf: T341626: E4113 works incorrectly. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.