Hello Serge,
The example still seems to be working as expected with the latest versions of our packages:
https://stackblitz.com/edit/angular-8k8ozu?file=app%2Fapp.component.ts
However, as this feature request is completed, and now there is a built-in option for stopping changing the value on scroll, we recommend using the said option:
https://www.telerik.com/kendo-angular-ui-develop/components/inputs/api/NumericTextBoxComponent/#toc-changevalueonscroll
Here is the updated example:
https://stackblitz.com/edit/angular-8k8ozu-wnwwhr?file=app%2Fapp.component.ts
Regards,
Dimiter Topalov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Mike,
I checked the suggested example by Dimiter. Running it I see that the value of the NumericTextBox isn't changed when the default behavior of the wheel event is prevented. Also if the page has a scrollbar and the wheel default behavior is prevented for the NumericTextBox, then using the wheel does scroll the page. Please find an updated example at the following link:
https://stackblitz.com/edit/angular-cwdb82-rdztmr?file=app/app.component.ts
In case further assistance is required for this case please open a separate private support thread so that we can continue the discussion with any further details. Thanks.
Regards,
Svet
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hello Diego,
Thank you for sharing this solution. Another more generic one that comes to mind is to create a custom directive which takes a boolean input indicating whether the wheel event should be stopped. To apply the directive to all NumericTextBox components automatically, it may have the same selector.
Here is a sample implementation of the described approach:
https://stackblitz.com/edit/angular-cwdb82-kf4kzm?file=app/app.component.ts
Regards,
Dimiter Topalov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Waiting for official support....i attach a more precise and angular style workaround to use on single components using numeric textbox:
Hi Alexandre,
Thank you for the logged feature request.
We will track the demand for this feature and plan accordingly our future development plans.
What could be done as a workaround until the feature is released is to use some custom JavaScript in order to handle the generic (wheel) event of the input element used by the NumericTextBox and stop its propagation. Please check the following example demonstrating such approach:
https://stackblitz.com/edit/angular-5lbaf4-e4tgdj?file=app/app.component.ts
Regards,
Svetlin
Progress Telerik