Disable Value Change

2 posts, 0 answers
  1. Vasu
    Vasu avatar
    1 posts
    Member since:
    Jul 2012

    Posted 05 Jul 2012 Link to this post

    Hi,

    How can I prevent the user from changing the slider value? One way to do this is by disabling the slider, but the look and feel isn't good.

    Thanks

    Vasu
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Jul 2012 Link to this post

    Hi Vasu,

    You can cancel the value change on OnClientValueChanging event as follows.

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

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top