Dock wont save position when moved twice.

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    4 posts
    Member since:
    Feb 2009

    Posted 13 Jul 2009 Link to this post

    We are working on a solution that allows the user to turn on the RadDocks and move content modules from zone to zone. When they move a Dock, I am saving it's position to the database on DockPositionChanged event. Everything works fine except that I cant move the same dock more than once without refreshing the page. If I move it once, it saves it's position and all the other dock's positions are updated as well. But if I move it a second time, every dock is updated but the one I moved. If I move Dock 1, then move Dock 2, then move Dock 1 again, it works fine. It does not work if I move Dock 1, then Move Dock 1 again. It acts as though Dock1 isn't contained in the collection.

    UPDATE: After tracing the event in Sql Server Profiler, I see that the event for Dock1 is fired when it is moved the second time, but it is not using the correct DockZoneID. It is still using the DockZoneID of the DockZone that I moved it to the first time.
  2. Pero
    Pero avatar
    1156 posts

    Posted 14 Jul 2009 Link to this post

    Hi Nathan,

    We have an example that demonstrates how the dock causes post back when it is moved. Even if the dock's position is changed many times its position is updated adequately. You can try to reproduce your behavior there, and let us know if you get the same problems as in your project.

    Sincerely yours,
    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.
Back to Top