<div id="HeaderDiv" style="width: 833px; height: 35px; overflow: hidden; padding-removed 0px; border-bottom-width: 0px;"> <table class="" cellspacing="0" cellpadding="" border="1px" style="border-style: none; border-collapse: collapse; width: 2015px;" rules="all"> <tbody> <tr class="" style="font-weight: bold;"> <td style="width: 102px;"> <span id="cphPage_gvForecastSummary_lblCheckInclude" class="ms-label" style="color:White;">Include</span> <br/> <span class="ms-label" style="border-color:LightBlue;"> <input id="cphPage_gvForecastSummary_chkSelectAll" type="checkbox" onclick="selectAll(this);" name="ctl00$cphPage$gvForecastSummary$ctl01$chkSelectAll"> </span> </td> <td style="width: 95px;">Business Type</td> <td style="width: 69px;">Type</td> <td style="width: 80px;">Close Month</td> </tr> </tbody> </table> </div>
function chkbxDisable() { var objButton = document.getElementById("<%=btnSetDraft.ClientID %>"); if (!objButton) { var tableGrid = document.getElementById("<%=gvForecastSummary.ClientID %>"); var objchkbox = document.getElementById("HeaderDiv").getElementsByTagName("input"); alert(objchkbox.length); for (var i = 0; i < objchkbox.length; i++) { alert(objchkbox[i].type.toUpperCase()); if (objchkbox[i].type.toUpperCase() == "CHECKBOX") { alert("In"); //objchkbox[i].disabled = true; objchkbox[i].display = 'none'; } } for (var i = 1; i < tableGrid.rows.length; i++) { tableGrid.rows[i].cells[0].childNodes[0].childNodes[0].disabled = true; } } }
function chkbxDisable() { var objButton = document.getElementById("btnSetDraft"); alert(objButton); if (objButton!=null) { var tableGrid = document.getElementById("gvForecastSummary"); var objchkbox = document.getElementById("HeaderDiv").getElementsByTagName("input"); alert(objchkbox.length); for (var i = 0; i < objchkbox.length; i++) { if (objchkbox[i].type.toUpperCase() == "CHECKBOX") { alert(objchkbox[i].type.toUpperCase()); alert("In"); objchkbox[i].style.display = 'none'; } } for (var i = 1; i < tableGrid.rows.length; i++) { tableGrid.rows[i].cells[0].childNodes[0].childNodes[0].disabled = true; } } }
<%=gvForecastSummary.ClientID %>
document.getElementById("<%=gvForecastSummary.ClientID %>")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)