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,
I would like to move the column dragging and sorting behavior of a grid grouping control from the left mouse button to the middle mouse button. I want to do this so I can implement more excel-like behavior in a grid grouping control (MB1 on column headers performs selection operations in excel).
How do I go about changing this behavior?
Thanks,
- Jon
ADAdministrator Syncfusion Team September 28, 2005 12:06 PM UTC
Hi Jon,
It''s currently hard-coded to use the left mouse button. What you would have to do is copy/pase the source code GridTableControlDragHeaderMouseController and GroupDropAreaDragHeaderMouseController to your project, rename these classes and register them as your mouse controllers. The HitTest method there checks for MouseButtons.Left.
But this make sense to be added as an event and/or property so that you can choose which button. That would be easier. If you are interested in this let me know and we can create a private patch. (Please create a dtrac incident then and refer to this thread).
Thanks,
Stefan
>
>I would like to move the column dragging and sorting behavior of a grid grouping control from the left mouse button to the middle mouse button. I want to do this so I can implement more excel-like behavior in a grid grouping control (MB1 on column headers performs selection operations in excel).
>
>How do I go about changing this behavior?
>
>Thanks,
>- Jon
JJJonathan JonesSeptember 29, 2005 02:21 PM UTC
Hi Stefan,
Yes, I would be interested in a private patch, but I may still need to do the custom mouse controller.
I still need MB1 to work, but for a different purpose. Ideally, I''d like MB2 to do the column dragging and sorting currently bound to MB1, and MB1 to provide the "traditional" excel-like behavior (clicking on a column header selects the column, clicking and dragging the mouse across multiple columns selects them all in sequence, etc). It would be really useful if GGC behaved this way out of the box.
If I do get a private patch, I need to make sure that I can still change MB1 to do what I want. Is this possible?
Thanks for all your help!
- Jon