您好,
产品版本:v4.0.2007 操作系统:Windows XP IDE: Visual Studio 2005
问题描述如下:
我在spread的表头中设置了下拉框ComboBoxCellType, 设置如下。
FarPoint.Web.Spread.ComboBoxCellType comboCell = new ComboBoxCellType();
//comboCell.AutoPostBack = true;
comboCell.ShowButton = true;
comboCell.OnClientChanged = "return cellChanged()";
string strSeq = "00" + i.ToString();
string pmboNo = upoNo +"_"+ strSeq.PadRight(3);
comboCell.ShowButton = true;
comboCell.DataSource = ccc.GetPMBOCCCHeaderStatusList(pmboNo);
comboCell.DataTextField = "status_name";
comboCell.DataValueField = "status_id";
fpsdIng.ActiveSheetView.ColumnHeader.Cells[2, 5].CellType = comboCell;
在客户端中我设置了函数
function cellChanged()
{
var row = fpsdIng.ActiveRow;
var col = fpsdIng.ActiveCol;
__doPostBack("fpsdIng", "ColumnHeaderClick," + row + "," + col);
}
我现在遇到的问题是在服务器端,我没能获取到ComboBoxCellType选中的值。
protected void fpsdIng_ColumnHeaderClick(object sender, SpreadCommandEventArgs e)
{
?????????????
}
我如何在服务器端和客户端获取到我表头下拉列表所选中的值?
万分感谢。 |
|