This is a migrated thread and some comments may be shown as answers.

Scrollwheel is caught by the textbox, is there a way to turn that off?

1 Answer 22 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
B
Top achievements
Rank 2
B asked on 28 Mar 2014, 05:16 PM
Hi,

For example, see the code below. The RadMaskedTextInput will prevent the scrollwheel working on the outer ScrollViewer. Is there an option to make it pass scroll wheel action to its parent?

Regards,

Bayram
‚Äč
    <ScrollViewer VerticalScrollBarVisibility="Auto">
        <StackPanel>
            <telerik:RadMaskedTextInput IsClearButtonVisible="False"
                                        Mask=""
                                        Value="Some text"
                                        Margin="5,5,5,0"
                                        HorizontalAlignment="Stretch"
                                        InputBehavior="Insert" />
            <TextBlock Text="Test"
                       Height="200"
                       VerticalAlignment="Center"
                       TextAlignment="Center" />
            <telerik:RadMaskedTextInput IsClearButtonVisible="False"
                                        Mask=""
                                        Value="Put the mouse here and use the scrollwheel, it doesnt scroll"
                                        Margin="5,5,5,0"
                                        HorizontalAlignment="Stretch"
                                        InputBehavior="Insert" />
            <TextBlock Text="Put the mouse here and use the scrollwheel, it scrolls"
                       Height="200"
                       VerticalAlignment="Center"
                       TextAlignment="Center" />
</StackPanel>
    </ScrollViewer>

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 02 Apr 2014, 11:18 AM
Hello,

Thank you for contacting us on that matter. You are right for the behavior of the RadMaskedTextInput control. This is why I logged this behavior as a bug in our Feedback portal and you are able to track its progress here.

As a small sign of appreciation for your feedback, I updated your Telerik account. As a workaround till we provide a fix for this issue, you can inherit the RadMaskedTextInput control and override the OnMouseWheel method. In your particular scenario you can leave the method empty. By doing so the inner logic, handling the event will not be triggered and the MouseWheel event will bubble to the ScrollViewer.

Please do not hesitate to ask if you have any other questions.

Regards,
Pavel R. Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
B
Top achievements
Rank 2
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or