},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)测试数据bobox('getValue')alert(value)
多啃下api, http://HdhCmsTestjeasyui测试数据/documentation/index.php
ed 输出来是个object类型的 value是空的 是什么原因啊
查看更多关于easyui问题,在线求大神帮忙_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did105942