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

Synchronised checkboxes in combobox

1 Answer 21 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Aneesh
Top achievements
Rank 1
Aneesh asked on 25 Jun 2012, 12:12 PM
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

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 25 Jun 2012, 12:50 PM
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.
Tags
ComboBox
Asked by
Aneesh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or