Stop from scrolling

3 posts, 0 answers
  1. Michael
    Michael avatar
    17 posts
    Member since:
    Sep 2011

    Posted 03 Jan 2013 Link to this post

    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. Michael
    Michael avatar
    17 posts
    Member since:
    Sep 2011

    Posted 03 Jan 2013 Link to this post

    Maybe i wasn't clear.  All I'm wanting to know is how do I make it not scroll?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Jan 2013 Link to this post

    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.
Back to Top