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

Check items

1 Answer 51 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 18 Nov 2011, 02:36 AM
I have a requirement that when the user check the checkbox he should not be able to check the other items.i want this from client side.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Nov 2011, 05:14 AM
Hello,

You can try the following javascript.
JS:
<script type="text/javascript">
 function OnClientItemChecking(sender, args)
    {
      if (sender.get_checkedItems().length == 1)
       {
        args.set_cancel(true);
       }
    }
</script>

Thanks,
Princy.
Tags
ComboBox
Asked by
Tina
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or