Synchronised checkboxes in combobox

2 posts, 0 answers
  1. Aneesh
    Aneesh avatar
    9 posts
    Member since:
    May 2012

    Posted 25 Jun 2012 Link to this post

    Hi,

    I have 2 similar comboboxes A & B with checkboxes. When I check one item in A then it should also be checked in B.

    Can you please help me

    Thanks & regards,
    Aneesh Daniel
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Jun 2012 Link to this post

    Hi,

    Try the following Javascript to achieve your scenario.

    JS:
    <script type="text/javascript">
       function OnClientItemChecked(sender, args)
        {
           var combo = $find("<%=RadComboBox2.ClientID %>");
           combo.get_items()._array[args.get_item().get_index()].set_checked(true);
        }
    </script>

    Hope this helps.

    Thanks,
    Princy.
Back to Top