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

Stop from scrolling

2 Answers 66 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 03 Jan 2013, 02:50 PM
I have a rotator that scrolls horizontal and is set up to display a schedule for a certain week.  How can I set it up to not scroll if the current week greater than a week i determain?  I'm using vb.net

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 03 Jan 2013, 07:52 PM
Maybe i wasn't clear.  All I'm wanting to know is how do I make it not scroll?
0
Princy
Top achievements
Rank 2
answered on 04 Jan 2013, 06:52 AM
Hi,

One suggestion is that you can cancel the client-side OnClientItemShowing event based on your condition.

JS:
<script type="text/javascript">
    function OnClientItemShowing(sender, args) {
        if (condition) {
            args.set_cancel(true);
        }
    }
</script>

Hope this helps.

Regards,
Princy.
Tags
Rotator
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Princy
Top achievements
Rank 2
Share this question
or