回复 1楼tingche的帖子
tingche 你好,
在前台取到的前提是设置 ComboBoxCellType 的 ShowButton 为 true。
请通过以下代码测试:
JS:
- <script language="javascript" type="text/javascript">
- // <![CDATA[
- function Button1_onclick() {
- var cell = this.document.getElementById("FpSpread1_1,0");
- alert(cell.innerHTML);
- }
- // ]]>
- </script>
复制代码
C#
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- string[] cbstr;
- string[] strval;
- cbstr = new String[] { "One", "Two", "Three" };
- strval = new String[] { "1", "2", "3" };
- FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
- cb.Items = cbstr;
- cb.ShowButton = true;
- FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
- }
复制代码 |