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

Window position incorrect

3 Answers 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tracy Dryden
Top achievements
Rank 1
Tracy Dryden asked on 25 Jan 2011, 12:07 AM
The bounds.x and bounds.y values for a radWindow are usually incorrect in onDragEnd event handler. Sometimes they are wildly off, sometimes by just a bit, sometimes they go up when I move the window closer to the top/left, sometimes they go down. There doesn't seem to be any logic in why they are off, or by how much, but 99.9% of the time they are incorrect. They only time they actually seem correct is when the window is first displayed, before it is actually moved.

Anyone else have this problem? Any fix for it?

3 Answers, 1 is accepted

Sort by
0
Tracy Dryden
Top achievements
Rank 1
answered on 25 Jan 2011, 09:08 PM
I played around with this some more. The top and left positions reported are the PREVIOUS top and left positions! After the window is moved and the onDragEnd event finishes, if I click on the title bar of the radwindow (which invokes onDragEnd again, even though the window has not moved) then the positions reported are correct. It appears that the new window position is not being set until AFTER the onDragEnd event is invoked, which is counter-intuitive and pretty useless.
0
Georgi Tunev
Telerik team
answered on 27 Jan 2011, 03:28 PM
Hello Tracy,

Yes, this is a known issue and we are planning to improve the behavior, but this will happen in the future. For the time being I suggest either to use a small timeout or Telerik's static client library to get the needed data.



All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Tracy Dryden
Top achievements
Rank 1
answered on 27 Jan 2011, 08:00 PM
I resolved the problem using a timeout. Thanks.
Tags
Window
Asked by
Tracy Dryden
Top achievements
Rank 1
Answers by
Tracy Dryden
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or