回复 1楼edsoft的帖子
edsoft 你好,
参考代码:
C#:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- FarPoint.Web.Spread.ButtonCellType btn = new FarPoint.Web.Spread.ButtonCellType();
- btn.OnClientClick = "test()";
- FpSpread1.ActiveSheetView.Cells[1, 1].CellType = btn;
- }
- protected void FpSpread1_ButtonCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
- {
- }
复制代码
JS:
- <script type="text/javascript">
- function test() {
- FpSpread1.CallBack("button");
- }
- </script>
复制代码 |