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

RadGrid DragDrop --> Howto Disable dragging while dropping

3 Answers 99 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 11 May 2012, 09:03 PM
I have a page with multiple RadGrid controls. One control drags to another control. While the dragDrop operation is still in process, the user drags another item, and the item being dragged is left on screen without dropping into any container. The item remains frozen above all controls, and doesn't go away until the page is refreshed. I added an OnRowDropping event client-side to catch when eventArgs.get_targetItemID() was blank, and used eventArgs.set_cancel(true). That stopped the instance where users were dropping a control on the page (outside a control) while dragging. I'd like to disable DragDrop while a DragDrop operation is in progress to avoid this. I looked through the Telerik documentation for the RadGrid object model, and I couldn't find anything client side that would allow me to detect whether or not the grid was currently dragging.
Does anyone know how to catch this? Then, when I determine that the user is already dragging, The OnRowDropping event will set_cancel(true) for that event.
Please help me with this if you can.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 16 May 2012, 02:39 PM
Hi,

I tried to replicate the issue on this online demo, but I am unable to drag a second item while the first item is dropping on the second grid. How do you perform this action?

Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Tony
Top achievements
Rank 1
answered on 16 May 2012, 03:28 PM
When the items are dropped, the data is updated instantaneously to reflect the change. So, there is a delay (time to save the records) which may not be present in the online demo. To duplicate, the receiving grid would need to be doing something that delays the completion of the first dragDrop. My testers are dragging items quickly in succession when they see this issue. If there is any delay (.5 seconds or more), they are able to drag a second item while the first is in process. I know this might seem insignificant, and if the second item didn't hang on top of the screen, I'd be OK with it. However, this causes the user to think the website is locking up or not performing properly, and this would result in many calls. I need to correct this to avoid that issue.
0
Andrey
Telerik team
answered on 17 May 2012, 02:43 PM
Hi,

I tried to replicate the issue locally in order to inspect it and to find the source of issue but I was unable. I tried to disable the Ajax and add Thread.Sleep method on the server in order to slowdown the response.

Could you open a formal support ticket and send us a stripped version of your code that reproduces the behavior?

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Tony
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Tony
Top achievements
Rank 1
Share this question
or