您好,欢迎访问一九零五行业门户网

easy ui问题,在线求大神帮忙_html/css_WEB-ITnose

return index;
},editor:{
type : 'combobox',
options : {
valuefield : 'usrid',
textfield : 'usrname',
url : '${pagecontext.request.contextpath }/user_tocombox.action?roleid=3',
}
}>分配给
这是easy ui 的datagrid中的一行,我用了一个单击事件加载这个combobox,想问下用什么方法能获取到这个combobox的value值
回复讨论(解决方案) geteditor: get the specified editor, the options contains two properties:
index: the row index.(正在编辑的行的下标,从0开始)
field: the field name.(编辑的列名称,column配置的)
var ed = $('#dg').datagrid('geteditor', {index:1,field:'svrcustno'});var value=$(ed.target).combobox('getvalue')alert(value)
多啃下api, http://www.jeasyui.com/documentation/index.php
 ed 输出来是个object类型的 value是空的  是什么原因啊
其它类似信息

推荐信息