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

Dynamic Dock Positioning

3 Answers 128 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Alex Peachey
Top achievements
Rank 1
Alex Peachey asked on 06 May 2007, 07:59 PM
I have a simple test page set up and so far I can successfully dynamically create docks and using the procedures outlined the documentation, I create the docks in the PageInit function. Everything is working well in that I can repeatedly click a button and create docks, each click adding another dock to the page.

Alls docks are set to Floating and there are no DockZones on the page. What I have noticed, is if I move a Dock to a different position than it started in, that position does not seem to be saved. So each successive click of my button creates a new dock, but resets all docks to the starting coordinates so they are stacked and I have to move them around to see them all.

I'm sure the reasoning is because after a Dock is moved on the page, that change in state is never actually saved. But what I can't seem to glean from the docs and examples is how to explicitly save that state after a dock has been moved.

3 Answers, 1 is accepted

Sort by
0
Ubong
Telerik team
answered on 09 May 2007, 03:49 PM

Hi Alex,

Please have a look at the following example http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/DynamicDocks/DefaultCS.aspx
In case of further issues, please zip and send us a sample application demonstrating them.

Kind Regards,
Ubong
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Alex Peachey
Top achievements
Rank 1
answered on 09 May 2007, 04:38 PM
Ah, thank you, the code in that example is a little more in depth than your code in the documentation for dynamic docks. I believe based on this example that what I was experiencing would not have been a problem if hooking up the creation of the dock with the RadAjaxManager worked. As I think there are some issues there as can be seen in my other thread (http://www.telerik.com/community/forums/thread/b311D-mbkkg.aspx) the solution you have that explicitly uses an updatepanel and an asyncpostbacktrigger on the button seems to work. Once ajaxified, of course the state is saved as you move the docks around.

In my test site, I eventually got the docks to save position but only by turning on autopostback on the docks. Since I couldn't get the dock creation to work with RadAjaxManager, I turned that back off as I didn't want constant postbacks of the entire page.

Note however, even in this working example you have provided, closing the docks does not work as they come back after a full postback. You can see the thread referencing this problem that Aron Calder and I have been tracking: http://www.telerik.com/community/forums/thread/b311D-mbkdd.aspx

Thank you for your attention to these issues as they are uncovered.
0
Petio Petkov
Telerik team
answered on 10 May 2007, 04:06 PM
Hello Alex Peachey,

We attached a test version to the following thread where this issue must be fixed.
http://www.telerik.com/community/forums/thread/b311D-mccag.aspx
Official update will be avaible on 21 May.

Kind regards,
Petio Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Alex Peachey
Top achievements
Rank 1
Answers by
Ubong
Telerik team
Alex Peachey
Top achievements
Rank 1
Petio Petkov
Telerik team
Share this question
or