Sir I am having checkbox in repeater on each row. When it get checked and unchecked the the function should fire. How should i call the function on checkbox to fire below event
I have modified below script as you have provided reference but the function is not firing.
<script type="text/javascript">
debugger;
var prm = Sys.WebForms.PageRequestManager.getInstance();
if (prm != null) {
prm.add_endRequest(function (sender, e) {
if (sender._postBackSettings.panelsToUpdate != null) {
$("[id*=chkRow]").bind("click", function () {
var grid = $(this).closest("table");
var chkHeader = $("[id*=chkHeader]", grid);
if (!$(this).is(":checked")) {
var td = $("td", $(this).closest("tr"));
$("input[type=text]", td).val = null;
$("input[type=text]", td).attr("disabled", "disabled");
} else {
var td = $("td", $(this).closest("tr"));
$("input[type=text]", td).removeAttr("disabled");
}
if ($("[id*=chkRow]", grid).length == $("[id*=chkRow]:checked", grid).length) {
chkHeader.attr("checked", "checked");
} else {
chkHeader.removeAttr("checked");
}
});
}
});
};
</script>