North American Sales: 1-800-231-8588
Global Contacts
My Account
Menu
North American Sales: 1-800-321-8588
My Account
Sign In/Register
Design & Development
Design & Develop
Best Value
Infragistics Ultimate
The complete toolkit for building high performing web, mobile and desktop apps.
Indigo.Design
Use a unified platform for visual design, UX prototyping, code generation and application development.
Web
Ignite UI for Angular
Ignite UI for JavaScript
Ignite UI for React
Ultimate UI for ASP.NET
Indigo.Design
Desktop
Ultimate UI for Windows Forms
Ultimate UI for WPF
Prototyping
Indigo.Design
Mobile
Ultimate UI for Xamarin
Ultimate UI for iOS
Ultimate UI for Android
Automated Testing Tools
Test Automation for Micro Focus UFT: Windows Forms
Test Automation for Micro Focus UFT: WPF
Test Automation for IBM RFT: Windows Forms
UX
Indigo.Design Desktop
Collaborative prototyping and remote usability testing for UX & usability professionals
Indigo.Design
A Unified Platform for Visual Design, UX Prototyping, Code Generation, and App Development
Business Intelligence
Reveal Embedded
Accelerate your time to market with powerful, beautiful dashboards into your apps
Reveal App
Empower everyone in your organization to use data to make smarter business decisions
Team Productivity
Learn & Support
Support
Help & Support Documents
Blogs
Forums
Product Ideas
Reference Applications
Customer Stories
Webinars
eBook & Whitepapers
Events
Free Trials
Pricing
Product Pricing / Buy Online
Renew Existing License
Contact Us
Forums
Ultimate UI for Windows Forms
Your Privacy Matters
: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use.
Cookie Policy
Close
State
Not Answered
Replies
11 replies
Subscribers
6 subscribers
Views
2954910 views
Users
0 members are here
UltraGrid
Share
More
Cancel
440
how to disable scrolling wheel from working inside a dropdown within a grid
leon
posted
over 14 years ago
I am having an issue where by if you happen to scroll the mouse wheel, inside a cell inside of a grid that happens to be a drop down list that is populated initially with records, but that is also editable to add new ones, the scroll triggers an event that will erase any entry within that cell that is not from the initial list... either I am not updating the cells list properly so that any added option from manuel text is not shot into the list to be viewed (thereby losing your self added option) or disable the scrolling option on a beforeentereditcell mode... either way would be nice, if i could get some help with this, thank you very much for your time.
440
leon
posted
over 14 years ago
in reply to
leon
Ok i got it, i just ended up validating in the exiteditmode of the cell that if the valuelist originally does not contain the newly added item i add it to the actual list, rebind the list and voila i now do not lose my manual entry, although I would have thought a cell.update (i know this does not exist) would have updated the cell's column valulist to now include the new value...anyways, Thanks again Mike for your help, sorry could not have thought of this sooner. Have a nice day.
Cancel
Reply
Cancel
440
leon
posted
over 14 years ago
in reply to
leon
Maybe i am going about this the wrong way, I need to make sure the manual entry i just entered in the cell does not get wiped by the scrolling effect...is there a way on exiteditmode to maybe update the list to now include my manual entry, that way if someone does scoll it will show the newly added manual entry within the list itself, is this not doable with a grid.update function or something???
Cancel
Reply
Cancel
440
leon
posted
over 14 years ago
in reply to
leon
Ok, i got it working sort of, I was able to do the cast within a try catch where if it did not cast properly it left the txtbox = nothing and then i tested on that to see whether to add the event handler, so i was able to get what you sent me to work, so far so good.... now my problem is once i am inside the event handler for the textbox(withuipermission apparently!) and that it triggers the event handler, i see you set the args.handled = true, however i still get the same effect, is there not a e.cancel=true sort of like a keystroke, so that the event does not allow the scroll to trigger the scrolling effect within the cell, or is it that at this point it is already too late because the scroll event has already happened???
Cancel
Reply
Cancel
440
leon
posted
over 14 years ago
in reply to
leon
Sorry about the multiple posts, i was getting a server error from your end, and would try reposting by modifying the post, anyways, i see it posted now, i also just want to mention the valuelist that i am referencing is being shown as a dropdown combobox, which is why i amthinking the valuelistdropdownunsafe is being used instead of the textbox you mentioned.
Cancel
Reply
Cancel
440
leon
posted
over 14 years ago
in reply to
Mike Saltzman
Hey Mike, thanks for taking the time to help me out, I appreciate it.... I am using vb.net so maybe my translation from c# is not so good, however I am getting an error when it tries to convert it from e.contrl over to the embeddedtextbo, it says it can not cast as, so i used the intelisense to see what type it was and i am seeing it is a ValueListDowpDownUnsafe? Am i missing something, I cut and paste your code as is, so the class you are talking to me about did not change, but the control being passed into the function is this one....any suggestions?
Cancel
Reply
Cancel
>