在Spread的CreateButton事件中将Update隐藏掉:
- protected void FpSpread1_CreateButton(object sender, FarPoint.Web.Spread.CreateButtonEventArgs e)
- {
- if (e.Command == "Update")
- {
- e.Visible = false;
- }
- }
复制代码
在前端通过Button的Click事件来调用Spread的Update方法:
- <script language="javascript" type="text/javascript">
- function Button1_onclick() {
- FpSpread1.Update();
- }
- </script>
复制代码
- <input id="Button1" type="button" value="Update" onclick="return Button1_onclick()" />
复制代码 |