Hi all!
In my Radgrid I inserted a <HeaderTemplate> with a checkbox where it checks/unchecks all the checkbox items. Now if I check/uncheck on of these checkbox items, I want to check/uncheck the header checkbox, but I can't find how.
I'm doing this client side via javascript. Can't do it server side.
In my Radgrid I inserted a <HeaderTemplate> with a checkbox where it checks/unchecks all the checkbox items. Now if I check/uncheck on of these checkbox items, I want to check/uncheck the header checkbox, but I can't find how.
I'm doing this client side via javascript. Can't do it server side.
function CheckReview(chk) { var grid = $find("<%=RadGrid.ClientID %>"); var masterTable = grid.get_masterTableView(); var flag = true; //this line doesn't find the header control var gridHeaderElement = masterTable.get_dataItems()[0].findElement("chkH"); for (var i = 0; i < masterTable.get_dataItems().length; i++) { if (!chk.checked) { flag = false; } } if (flag) { gridHeaderElement.checked = true; } else { gridHeaderElement.checked = false; }}