lghclub
2009-06-18 14:08获取不到选择ext某一列的数据
function showeditPanel()
{
var record = grid.getSelectionModel().getSelected()
if(!record){
Ext.Msg.alert('信息','请选择要编辑的数据');
return;
}
if(!editWindow)
{
editWindow = new Ext.Window({
el: 'edit_win',
title:'编辑记录',
width: 650,
height: 360,
closable: false,
closeAction: 'hide',
resizable: false,
items: editForm
});
}
editWindow.show(Ext.get('editDataButton'));
editWindow.getForm().loadRecord(record); [color=red]为什么这里获取不到value[/color]
}
editForm = new Ext.FormPanel( {
title: 'title',
frame: true,
width: 300,
labelAlign: 'right',
labelWidth: 60,
defaultType: 'textfield',
defaults: {
width: 200,
allowBlank: false
},
defaultType : 'textfield',
items : [{
id:'ids',
name : 'model.id'
},{
fieldLabel : '名字',
name : 'model.name'
},{
fieldLabel : 'itemName',
name : 'model.itemName'
},{
fieldLabel : 'itemValue',
name : 'model.itemValue'
},new Ext.form.TextArea( {
fieldLabel : 'remark',
name : 'model.remark'
}
)],
buttons : [{
text: '保存',
handler: function() {
if (editForm.form.isValid()) {
editForm.form.doAction('submit',{
url : 'save.html',
method:'post',
success: function(form, action){
Ext.Msg.alert('success', action.result.info);
ds.load();
editForm.reset();
editWindow.hide();
},
failure : function(form, action) {
Ext.Msg.alert('修改失败', '添加级别失败!');
}
});
}
}
},{
text : '取消',
handler : function() {
editWindow.hide();
}}
]
});
var grid = new Ext.grid.GridPanel( {**************})
- 点赞
- 回答
- 收藏
- 复制链接分享
3条回答
为你推荐
- EXT如何给WINDOW弹窗传值
- ext
- javascript
- 0个回答
- 关于Ext combo key 验证问题 谢谢大家了
- ext
- javascript
- 0个回答
- Grid 下拉列表问题
- ext
- javascript
- 0个回答
- ext中怎样从yahoo网站动态获取xml文件并解析
- ext
- javascript
- 0个回答
- 如何从一个gridpanel获取数据在另一个gridpanel显示?
- ext
- javascript
- 0个回答