This is a migrated thread and some comments may be shown as answers.

Dock Post back Issue

2 Answers 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
ajit
Top achievements
Rank 1
ajit asked on 17 Jun 2009, 01:18 PM
Hi,
      I am dynamically generating dock windows.  I have a asp:button on the rad dock and whenever i click on it the dock window disappears. I know it is happening because of a postback but please could you provide me with a solution to get over this issue. I have tried using an update panel but it raises a java script error maybe because i am  other ajax settings . Please provide me with some feedback without using update panel.

Regards,
Ajit

2 Answers, 1 is accepted

Sort by
0
apb
Top achievements
Rank 1
answered on 19 Jun 2009, 12:58 PM
Be sure that you are loading the docks (and their contained controls) in Page_Init on every postback.

If the controls do not keep their state in ViewState, you may need to reconstruct some or all of the state as well. This is usually best done in Page_Load ().

0
Petko
Telerik team
answered on 22 Jun 2009, 12:41 PM
Hello ajit,

The demo that shows how to implement dynamically creation of RadDock is available here. If you don't want to use update panel, just remove it from the ASPX file and the code behind.

Kind regards,
Petko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
ajit
Top achievements
Rank 1
Answers by
apb
Top achievements
Rank 1
Petko
Telerik team
Share this question
or