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

Prevent mouse wheel scrolling

2 Answers 72 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Feb 2011, 10:08 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Feb 2011, 08:42 AM
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.
0
Niko
Telerik team
answered on 25 Feb 2011, 12:26 PM
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!
Tags
Rotator
Asked by
John
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Niko
Telerik team
Share this question
or