spread在前端有DataChanged事件,可以处理用户改变,post数据会服务器刷新。
按钮是否设置为不可用状态指什么,用户不能选择?设置单元格locked
- <script lang="javascript" type="text/javascript">
- window.onload = function () {
- var spread1 = document.getElementById("<%=FpSpread1.ClientID %>");
- if (document.all) {
- // IE
- if (spread1.addEventListener) {
- // IE9
- spread1.addEventListener("DataChanged", dataChanged, false);
- } else {
- // Other versions of IE and IE9 quirks mode (no doctype set)
- spread1.onDataChanged = dataChanged;
- }
- }
- else {
- // Firefox
- spread1.addEventListener("DataChanged", dataChanged, false);
- }
- }
-
- function dataChanged(event) {
- alert("The data changed!");
- }
-
- </script>
复制代码 |