lijiahuilijiahui
2009-10-24 17:29ext 获取编辑后表格的值
看API写了一段获取编辑后表格的值 可是怎么都不行 我写的代码如下:
//grid是事先已定义好的EditorGridPanel
grid.on("cellclick",function(grid,row,column){//[color=red]这个事件是当点击单元格触发会传递行和列的值[/color]
grid.on("afteredit",//[color=red]这个是编辑完单元格触发[/color]
function(){
var record=new Ext.data.Record({//[color=red]定义一个record[/color]
data:storee//[color=red]数据源这个是已经定义的jsonStore[/color]
});
record.endEdit();//当编辑完成时通知store
alert(record.get("lmbh"));//[color=red]想弹出编辑lmbh这个dataindex的后的值 可是总是为undefined[/color]
Ext.Ajax.request({
url:'<%=request.getContextPath()%>/updateBI.do?dataIndex='+cm.getDataIndex(column)
}
)
}
)
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- ExtJS4.x 取得当前行的索引
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
- extjs单元格不能触发afterEdit
- ext
- javascript
- 0个回答
- gridpanel中单元格有下拉框, 改变下拉框的,结果却显示值,而不是名...
- ext
- javascript
- 0个回答
- ext 获取编辑后表格的值
- ext
- javascript
- 0个回答