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

prevend user from changing value

1 Answer 47 Views
Slider
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 13 Dec 2012, 11:16 AM
how to prevent the user from changing the slider value?

thanks

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2012, 11:36 AM
Hi,

You can cancel the change of the value in the OnClientValueChanging event of RadSlider as follows.

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

Regards,
Shinu.
Tags
Slider
Asked by
beeta one
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or