Register | Login

ZettaCube Forum and Knowledge Base

Welcome to ZettaCube forum. Here you can discuss various issues regarding our ZeeControls product. If you want to contact our developers directly, please email to support@zettacube.com.

Please register to post a message. Registration is immediate and free. Return users please login here.

 
  Forum  Discussions  WebDock  Dynamic Panel
Previous Previous
 
Next Next
New Post 1/19/2009 12:13 AM
  billyc
1 posts
No Ranking


Dynamic Panel 

Hello,

I am trying to create dynamic panels, i.e. create them via code rather than define them statically in ASPX file.  But I found that the dynamic panel created disappeared after a subsequent postback to the server.  Is it not supported?

Thank you.

 
New Post 1/19/2009 2:35 AM
  ZettaCube Support
57 posts
No Ranking


Re: Dynamic Panel 
Modified By ZettaCube Support  on 3/10/2009 7:51:37 AM)

Dear billyc,

You have to keep track of the dynamic panels created, and re-create them on each postback. Also, you have to re-create the controls within the dynamic panel on each postback.

WebDock and Web Splitter will then keep track of the dynamic panels' states, such as their sizes, and opened/collapsed/maximized state.

You may refer to the demo below for a sample implementation.  In that demo, when you click the 'Toggle' button, a 'Breakpoints' tab will be added to the bottom panel.  Then when you click the 'Simple Postback' button, you will find that the 'Breakpoints' tab will still be there. This is because we use a flag to remember whether the 'Breakpoints' tab should be shown, and re-create it accordingly on each postback.

http://demo.zettacube.com/Products/ZeeControls2/default.aspx?p=WebDock/Advanced/UpdatePanel.aspx
 

Regards

 

Technical Support
ZettaCube Limited

 
Previous Previous
 
Next Next
  Forum  Discussions  WebDock  Dynamic Panel
Copyright 2009 by ZettaCube Limited