The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, My problem : I want to change the color of the target dotted rectangle which appears when you drag the cell. I want to use my own mouse controller.
I have posted this question already, but the answer I have got was not helpfull enough.
I am looking for the following code sample : MouseController\GridDragSelectMouseController.cs Can you send me the sample, or a link to it?
Hi Haneef, thank you sor far for your help. I use my own mouse controller. The drag&drop cursor has to have a different color, so in the HitTest the position of the mouse cursor is tested and if it is on the position, where the grids drag&drop cursor would appear normally, my new cursor apperes.
But then I need that the drag&drop operation starts (I just changed the D&D cursor, but the D&D operation must be performed). It does not work in your example es well. If the custom leaf-cursor appears, then the cell can't be dragged. The drag&drop events are not cached by the mouse controller. How can I handle this? Can/should I call the drag&drop operation of the grid from my mouse controller?
So once more my problem : I need to change the drag&drop mouse cursor to my own (this is done already), then to perform normal drag&drop operation (does not work at all) and during dragging, I need that the color of the target rectangle is changed to more visible color (red).
Thank you, regards Dan
HAhaneefm Syncfusion Team June 1, 2007 11:59 PM UTC
Hi Dan,
One way you can do this by derving the GridDragSelectMouseController class and overide cursur property to change the your cursur. You would have to remove the old controller and register your derived one with code like: