Hello Khalid,
The Check_Radio function iterates through all inputs and checks all checkboxes which have id different than the clicked radio button. If I understand correctly, you would like to check the checkobox only of the same row. Please correct me if I am wrong.
If that is the case, you could simply find the checkbox within the current row and set its checked property.
e.g.
function Check_Radio(rb) {
var isChecked = rb.checked;
var row = rb.parentNode.parentNode;
if (isChecked) {
row.style.backgroundColor = '#B6C4DE';
row.style.color = 'black';
}
$(row).find("[type='checkbox']").prop('checked', isChecked)
var currentRdbID = rb.id;
parent = document.getElementById("<%= GridView1.ClientID %>");
var items = parent.getElementsByTagName('input');
for (i = 0; i < items.length; i++) {
if (items[i].id != currentRdbID && items[i].type == "radio") {
if (items[i].checked) {
items[i].checked = false;
items[i].parentNode.parentNode.style.backgroundColor = 'white';
items[i].parentNode.parentNode.style.color = '#696969';
}
}
}
}
Please try the above approach and let me know if it works for you.
I look forward to your reply.
Regards,
Georgi
Progress Telerik