回复 3楼kamehameha的帖子
你好,设置方式如下:
后台:
- protected override void Render(HtmlTextWriter writer)
- {
- Table _viewPort = this.FpSpread1.FindControl("viewport") as Table;
- _viewPort.Attributes.Add("onclick", "return cellclick()");
- base.Render(writer);
- }
复制代码
前台:
- <script type="text/javascript">
- function cellclick() {
- var spread = this.document.getElementById("FpSpread1_viewport");
- spread.bgColor = "red";
- }
- </script>
复制代码 |