服务器端没法控制的,前端可以在EditStart 事件控制。
window.onload = function () {
var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
if (document.all) {
// IE
if (spread1.addEventListener) {
// IE9
spread1.addEventListener("EditStart", EditStart, false);
} else {
// Other versions of IE and IE9 quirks mode (no doctype set)
spread1.onEditStart = EditStart;
}
}
else {
// Firefox
spread1.addEventListener("EditStart", EditStart, false);
}
}
function EditStart(event) {
var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
var txt = document.getElementById(spread1.id + "_textBox");
txt.tabIndex = -1;
}
|