回复 14楼shujian的帖子
Spread 前台GetHiddenValue方法第二个参数的需要设置为 column 显示的文本,我通过以下代码可以正常获取(Spread for ASP.NET 8.1):
- <script type="text/javascript">
- function spreadgethiddenvalue() {
- var hval = FpSpread1.GetHiddenValue(0, "test");
- }
- </script>
复制代码
后台:
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- this.FpSpread1.ActiveSheetView.Columns[0].Visible = false;
- this.FpSpread1.ActiveSheetView.Cells[0,0].Text="测试";
- this.FpSpread1.ActiveSheetView.Columns[0].Label = "test";
- }
复制代码 |