Radcombobox CheckAllItemsCheckBox

5 posts, 0 answers
  1. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 04 Feb 2013 Link to this post

    Hi.
    I wolud like to use JavaScript to get CheckAllItemsCheckBox and set it enabled or disabled for a choosen combobx.
    Any ideas how to achieve this?
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Feb 2013 Link to this post

    Hello Mateusz

    Try the following JS
    JS
    <script type="text/javascript">
    function onLoad(sender, args)
    {
     var combo = $telerik.$('.rcbCheckAllItemsCheckBox');
     combo[0].disabled = true;
    }
    </script>

    Thanks
    Princy
  3. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 04 Feb 2013 Link to this post

    Hi.
     Unfortunately that doesn`t cut it ;(.
    When you have more then one RadcomboBox on a page with CheckAllItemsCheckBox. This solution disables first random one.
    I need to disable a particular one.
  4. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Feb 2013 Link to this post

    Hi Mateusz

    If you have more than one combobox then try giving its Id(here RadComboBox2) before the class
    Check the following JS
    <script type="text/javascript">
    function onLoad(sender, args)
    {
     var combo = $telerik.$('#RadComboBox2 .rcbCheckAllItemsCheckBox');
     combo[0].disabled = true;
    }
    </script>

    Thanks
    Princy
  5. Mateusz
    Mateusz avatar
    14 posts
    Member since:
    Aug 2012

    Posted 05 Feb 2013 Link to this post

    Ok it almost does the trick but...
    In fact the checkbox is unclickable, but i can click on the row of the value (Check All) and it changes the checkbox checked value.
Back to Top