var selectedName = ""; var newHeaderArgs; var newWidthArgs; var newColAlignArgs; var newColSortArgs; var newColTypeArgs; function $(id){ return document.getElementById(id); } function InitGridEdit(){ var jsonObj = null; var selectObj = $("sel_added"); if(newHeaderArgs != null){ if(selectObj.options.length > 0)selectObj.options.length = 0; for (var i = 0; i < newHeaderArgs.length; i++) { if (i == 0) { var newOption = new Option("全选框", newColSortArgs[i]); selectObj.options.add(newOption); } else { var newOption = new Option(newHeaderArgs[i], newColSortArgs[i]); selectObj.options.add(newOption); } } }else{ if(tempJson != ""){ jsonObj = eval('(' + tempJson + ')'); $("h_gridcache").value = JSON.stringify(jsonObj); $("h_origcache").value = JSON.stringify(jsonObj); for(var i=0;i 0){ selectedArg.push(addObj.options[i].value); for(var j=iExistCount;j