Posted on: 8/15/2013 1:28:12 PM | Views : 916

I have a combo box that allows you to use checkboxes in the drop down list. I also have a stand alone checkbox that if checked will check all the checboxes in the combo box or uncheck them all if it's unchecked.  If all items are checked, then when one is uncheched I want to use some java script to unchecked the stand alone check box. How can I properly get to the stand alone checkbox in Java script. I tried the code below, but cbSelectAllOrganization is null
function OnClientItemChecked(sender, args) { var countChecked = 0; var totalCount = sender.get_items().get_count() - 1; for (var i = 0; i < sender.get_items().get_count(); i++) { if (sender.get_items()._array[i].get_checked()) { countChecked = countChecked + 1; } } var cbSelectAllOrganization = $find("<%= cbSelectAllOrganizations.ClientID %>"); if (countChecked >= totalCount) { ...

Go to the complete details ...