我的页面上有一个ultrawebgrid和一个复选框,现在我想在选中复选框时禁用网格,所以我现在使用以下代码我只是在加载页面时禁用网格有人告诉我下面代码中的错误是什么:
private void generatePageScripts()
{
if (!Page.ClientScript.IsClientScriptBlockRegistered(this.GetType(), "SqbpeCovInfoECPCoverageSetup"))
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.AppendLine("function DisableGrid(gridId, cellId)) {");
sb.AppendLine(" var grid = igtbl_getGridById('" + this.grdVehicleType.ClientID + "');");
sb.AppendLine(" grid.Element.disabled=true;");
sb.AppendLine("}");
}
}