找回密码
 立即注册

QQ登录

只需一步,快速开始

componentcn

注册会员

11

主题

26

帖子

197

积分

注册会员

积分
197

活字格认证

componentcn
注册会员   /  发表于:2010-7-7 16:12  /   查看:8375  /  回复:2
您好,
产品版本: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)

?????????????

我如何在服务器端和客户端获取到我表头下拉列表所选中的值?
万分感谢。

2 个回复

倒序浏览
gw0506
超级版主   /  发表于:2010-7-8 11:20:00
沙发
你好,如果你将celltype应用给ColumnHeader,确实取不到值。如果是将string直接设置给ColumnHeader上某一个cell的Text,则可以取到Text。

我想知道你将ComboBoxCellType设置到ColumnHeader上是出于什么样的需求?是想实现Filter功能么?还是有其他考虑?
回复 使用道具 举报
万研123
新手上路   /  发表于:2010-8-12 13:47:00
板凳
楼主帮顶了
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部