| 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是空的 是什么原因啊
Kenyataan:Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn