I've got a drop down list and when a particular item is selected I'd like to check a checkbox inside a radgrid. below is what I've figured out thus far but can't quite figure out how to check the checkbox.
<script type="text/javascript">
function OnClientItemSelected(sender, eventArgs) {
var item = eventArgs.get_item(); //target 3
var grid = $find("<%= rgClientSites.ClientID %>");
var masterTable = grid.get_masterTableView();
var cell = masterTable.getCellByColumnUniqueName(masterTable.get_dataItems()[0], "2"); //2 is the item that contains the checkbox
if (item.get_value() === "3") {
//check it
alert(cell.innerHTML);
}
else {
//uncheck it
}
}
</script>
Any help would be most appreciated.