I have radcombobox with multiple selection of check boxes, by unchecking a checkbox i am trying to hide a div which has radgrids inside. And further making the user to click on a button to show the div again with the remaining selected radcombobox items and bind radgrid data depending upon the selection. I have tried the following code with the given telerik discussion https://www.telerik.com/forums/no-check-uncheck-all-event
But the div is still visible. Is there any way to hide the div ? Please correct me if i understood it wrong . Thanks. !
function OnClientItemChecked(sender, args) {
var check = true;
var uncheck = true;
var checkedItems = sender.get_checkedItems().length;
var c = sender.get_items().get_count();
for (var i = 0; i <
sender.get_items
().get_count(); i++) {
if (!sender.get_items()._array[i].get_checked()) {
check
=
false
;
}
if (sender.get_items()._array[i].get_checked()) {
uncheck
=
false
;
}
}
if (check) {
}
if (uncheck) {
document.getElementById('<%=divGrids.ClientID%>').style.display = 'none';
}
}