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

Is it possible to create Docks in event different from page.init

3 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
dmitri
Top achievements
Rank 1
dmitri asked on 16 May 2008, 04:42 PM
Hi,
I have tree of radtree and 2 panels that display node properties. The first panel displays editable node properties as form. Another one displays it's content using raddocks (prometheus). I need to display dynamic created docks and those docs deppends upon the tree node clicked. But due to documentation the raddocks needs to be created with page.init event and in my case it's need to be created on nodeclick event. How can an I figure it out?

Regards

3 Answers, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 17 May 2008, 07:04 AM
Hi Dmitri,

We recommend creating the dynamic RadDock controls at the Init event of the page in order to allow the RadDockLayout to automatically manage their positions. However, you can create RadDock controls in other events as well but you should recreate them in Init when the next postback or AJAX request occurs. I suggest you take a look at the Dynamically Created Docks online example which demonstrates how to dynamically create docks at button click event and recreate them from state at page Init.

If you need further assistance, do contact us again.

All the best,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
dmitri
Top achievements
Rank 1
answered on 19 May 2008, 05:42 AM
Hi, Sophy
Thanks for you answer but I have different logic of saving controls position to database. I'm using prometheus docking control as well as ajax. But I when create docking objects nodeclick event the zone are displayed empty. May be only latest ASP .NET controls for Ajax allows such functionality?
Regards
Dmitri
0
Sophy
Telerik team
answered on 19 May 2008, 07:22 AM
Hello Dmitri,

For your convenience we prepared a sample page based on the Dynamically Created Docks online example but the docks are created at treeview node click instead of at button click. In case the attached page cannot help you achieve the desired scenario, please, open a support ticket and send us a simple running application which demonstrates your scenario and what is the problem you experience so that we can take a closer look at your code and get a better idea of the issue. We will be glad to help you.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
dmitri
Top achievements
Rank 1
Answers by
Sophy
Telerik team
dmitri
Top achievements
Rank 1
Share this question
or