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

2 posts, 0 answers
  1. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 28 Mar 2014 Link to this post

    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>
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 02 Apr 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top