以上需求应该稍微修改以下就可以实现了
首先,给spread添加客户端的EditStopped事件,并添加以下代码:
- function FpSpread1_EditStopped(event) {
- if (FpSpread1.GetActiveCol() == 0) {
- var editor = document.getElementById("FpSpread1_PopupEditor1001");
- FpSpread1.SetValue(FpSpread1.GetActiveRow(), 0, editor.value);
- }
- }
复制代码
然后修改服务端代码:
- protected void Page_Load(object sender, EventArgs e)
- {
- PopupCellType pct = new PopupCellType();
- FpSpread1.ActiveSheetView.Columns[0].CellType = pct;
- FpSpread1.ActiveSheetView.Cells[0, 0].Value = "AAAA";
- }
复制代码
0000_Popup.zip
(12.01 KB, 下载次数: 215)
|