hello iceman
用戶點擊effectivedate欄位時要彈出一個日期控件,因在后臺用DateCalendarCellType屬性跟FarPoint.Web.Spread.Extender有沖突,現在前臺用javascript實現,需要判斷是effectivedate欄位才彈起日期控件.用如下代碼可以取到colHeaderTable 對象,但不知道怎么判斷是那個columnname
function cellChanged() {
debugger;
var row = event.row;
var col = event.col;
//var spread1 = document.getElementById("fpsWebRfqDtl");
//var rowHeaderTable = this.document.getElementById("fpsWebRfqDtl_rh");
var colHeaderTable = this.document.getElementById("fpsWebRfqDtl_colHeader");
scell =colHeaderTable.cells[1,col ].value // 計算是否是effectivedate欄位
if (scell == "effectivedate") {
strDate = formatDate(OpenDlg("../Jscript/Calendar1.htm" + window.location.search, 206, 207, Text), 0);
}
} |
|