Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • Hi, I am working on an issue in our product centered on forms failing so scroll when a user uses the mouse scroll wheel while a LookUpEdit is focused. In our system we have disabled the scrolling of LookUp items when the LookUp is not popped out (per CQ56421). I assume, since we swallow the scrolling event in the MouseWheel handler the form does not get notified that the mouse wheel has been scrolled. Is there a way where we can disable the scrolling of items in the LookUpEdit AND still have the scrolling of the form work when a LookUpEdit is focused?

                                    Steps to reproduce:
                                    a.     Select the Simple Text Box, then scroll the mouse wheel...notice the form scrolls
                                    b.     Now select the LookUpEdit and scroll the mouse wheel...notice the form DOES NOT SCROLL...we would like it to. Can this be done?

                                0

                                Hello,

                                Thank you for the question. I'm afraid that there is no direct way to achieve this goal, because the LookupEdit manages the mouse wheel internally. The only way to achieve this goal is to create your own LookupEdit descendant and override its OnMouseWheel method:

                                [C#]
                                protected override void OnMouseWheel(MouseEventArgs e) { //leave it empty; }

                                I have attached a sample project, which demonstrates how to implement this feature. Please review it and inform me whether this approach suits your needs.

                                Thanks,
                                Stan.

                                0

                                Glorious. Thanks.

                                0

                                Perfect. Thanks.

                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2017 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners