Checkboxes Select a single node only

3 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    376 posts
    Member since:
    Aug 2008

    Posted 11 Nov 2015 Link to this post

    Hi all

    Don't ask - operation reasons, but I have  rad combo box with checkboxes, is it possible to only allow a single checkbox to be selected?

    A bit like turning off multiselect, which isn't a property.


  2. Ivan Danchev
    Ivan Danchev avatar
    1993 posts

    Posted 16 Nov 2015 Link to this post

    Hello Andy,

    This behavior can be achieved by subscribing to the ComboBox' OnClientItemChecking client-side handler and canceling the event if the user tries to check more than one checkbox:
    function OnClientItemChecking(sender, args) {
        var checkedItems = sender.get_checkedItems();
        var item = args.get_item();
        if (checkedItems.length >= 1 && !item.get_checked()) {

    Ivan Danchev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Andy Green
    Andy Green avatar
    376 posts
    Member since:
    Aug 2008

    Posted 16 Nov 2015 in reply to Ivan Danchev Link to this post

    Hmm Thanks Ivan, but not exa tly what I need.

    1. I have to be able to turn the feature on & off fro code behind - simple enough

    2. you can select another item without first deselecting the selected one, would be better if it selected the next clicked on, and de selected any others.

    Is any of this possible?


Back to Top