Dynamic Dock Positioning

4 posts, 0 answers
  1. Alex Peachey
    Alex Peachey avatar
    56 posts
    Member since:
    May 2006

    Posted 06 May 2007 Link to this post

    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.

  2. Ubong
    Admin
    Ubong avatar
    328 posts

    Posted 09 May 2007 Link to this post


    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
  3. Alex Peachey
    Alex Peachey avatar
    56 posts
    Member since:
    May 2006

    Posted 09 May 2007 Link to this post

    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.
  4. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 10 May 2007 Link to this post

    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
Back to Top