Prevent mouse wheel scrolling

3 posts, 0 answers
  1. John
    John avatar
    34 posts
    Member since:
    Apr 2008

    Posted 24 Feb 2011 Link to this post

    Hello - if I only have 2 or 3 items in my rotator and I use my mouse scroll wheel over the rotator, those few items scroll up and out of view leaving and empty space.

    Is there any way to disable the scroll wheel?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 25 Feb 2011 Link to this post

    Hello John,


    You can cancel the "OnClientItemShowing" event based on the items count in rotator.

    Client code:
    function OnClientItemShowing(sender, args) {
        itemCount = sender.get_items().length;
        if (itemCount < 3) {
            args.set_cancel(true);
        }
    }



    -Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Niko
    Admin
    Niko avatar
    387 posts

    Posted 25 Feb 2011 Link to this post

    Hi John,

    Could you specify the version of RadControls for ASP.NET AJAX that you have encountered the problem with? Also could you let me know what browser is reproducing the issue and which version? Finally, please, send us a fully runnable sample project, which shows the strange behavior, so that we can investigate it in details.

    Greetings,
    Nikodim
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top