回复 3楼simonshen的帖子
你好,可以通过以下代码实现:
后台代码:
- protected override void Render(HtmlTextWriter writer)
- {
- Table viewport = this.FpSpread1.FindControl("viewport") as Table;
- viewport.Attributes.Add("onmousewheel", "CancleMouse()");
- base.Render(writer);
- }
复制代码
前台代码:
- <script type="text/javascript">
- function CancleMouse() {
- event.cancelBubble = true;
- event.returnValue = false;
- return false;
- }
- </script>
复制代码 |