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

URGENT : Frequently drag and drop error

1 Answer 30 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Test
Top achievements
Rank 1
Test asked on 23 Feb 2009, 05:04 AM
Hello everyone,

I am using dock control in one of my application. and on drag and drop, frequely this rror occurs.
Suddenly dock appear twice....
can you please help me to shortout this error.


http://121.247.170.47/Dezision/Attachment/dock%20error.jpg

Thanks in advance,
Mayur

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 23 Feb 2009, 10:55 AM
"The problem you experience is happening because you update a floating RadDock with AJAX. When dragging the dock you move it outside the update panel and this causes AJAX not to work properly as it attempts to recreate the dock at the place it was previously located and  the dock is moved to the new place and stays there. In this way two docks with the same id appear on the page and this leads to an exception. Note that this is a common problem of controls which can be moved in the DOM tree.
A simple example which illustrates how to add/remove  RadDocks via Ajax is available here:
http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx
Keep in mind that you should update all RadDockZones while all RadDocks are docked on every ajax call."
Tags
Dock
Asked by
Test
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or