We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Custom column cursor for drag-and-drop between grids

I am having issues with the drag and drop implementation within the grid. I am trying to render a column to a cursor, and then use either that cursor or the "No" cursor when dragging over valid drop targets within my grid. All of this logic works fine, however the grid does not appear to ever call GiveFeedback or OnGiveFeedback, nor does it respect Cursor.Current or OnSetCursor for more than a moment, resulting in my custom cursor flickering vs the default drag and drop cursors (move and invalid).

I've tried god-knows-how-many kludges and hacks taken from these forums. NONE have worked. Here are some of the many I've tried (talk about a waste of my time!!):

Correct way in OLE:
GiveFeedback. Never fired.
OnGiveFeedback in derived class. Never fired.

Attempts to turn off underlying grid behavior. Has no impact:
AllowDrop = true;
Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDropTarget;
Model.Options.ControllerOptions = Model.Options.ControllerOptions & ~GridControllerOptions.OleDataSource;

Overriding OnSetCursor. Results in flicker, as does setting Cursor.Current.

The next one to look at is implementing my very own MouseController, however there's no documentation on the subject, and I have no reason to believe it'll work any differently. How about a real solution?

Here are some of the forum threads that are just blind alleys. How about consolidating and fixing stuff like this? It's obviously a common problem... Help!

http://www.syncfusion.com/support/forums/grid-windows/29022
http://www.syncfusion.com/support/forums/grid-windows/35475/DragHelper%20and%20Cursor
http://www.syncfusion.com/support/kb/451/How%20do%20I%20change%20the%20mouse%20cursor%20in%20a%20GridControl%20%20GridDataBoundGrid%20%20GridGroupingControl




1 Reply

AS Asarudheen S Syncfusion Team February 15, 2012 12:19 PM UTC

Hi Noah,

Thank you for your interest in Syncfusion products.

Please refer the following sample to resolve the reported issue in this forum.

Here is the sample link:

http://www.syncfusion.com/support/forums/general/102579

Please let us if this helps.

Regards,
Asarudheen.








Loader.
Live Chat Icon For mobile
Up arrow icon