客户端实现类似于DataGrid的输入表格控件[2]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 curllion 的 blog

件中提交
         this.textboxs = new array(textboxs.length);
         for(var i = 0; i< textboxs.length ;i++)
         {
             this.textboxs[i] = textboxs[i];
         }
    }
    this.selectedindex   = -1;                  //选择索引,-1表示没有行被选中
    this.deleteenable  = true;                  //是否显示删除按钮
    this.rowcount      = 0;                     //行数
    this.rows          = new array();           //行集合
    this.parent        = parent;                //此控件的父控件
    this.id="dg";                               //本控件的id
    for(var i = 0; i< colcount;i++)
    {
        if(colwidths == null)
            this.colwidths[i]   = 60;           //指定默认行高为60,也可以用字符串指定为百分数
        else
            this.colwidths[i]   = colwidths[i];
        this.titlerow[i]        = titlerow[i];
        if(postcols  == null)
            this.postcols[i]    = 0;            //默认是没有列要上传
        else
            this.postcols[i]    = postcols[i];
        if(inputcols == null)
            this.inputcols[i]   = 0;            //默认是没有列要上传
        else
            this.inputcols[i]   = inputcols[i];
    }
}

本文关键:客户端实现类似于DataGrid的输入表格控件
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top