easy ui问题,在线求大神帮忙

w490737485 2014-10-21 01:59:40
<th data-options="field:'svrCustNo',width:100,formatter:function(value,row,index){
return index;
},editor:{
type : 'combobox',
options : {
valueField : 'usrId',
textField : 'usrName',
url : '${pageContext.request.contextPath }/user_toCombox.action?roleId=3',
}
}">分配给</th>

这是easy ui 的datagrid中的一行,我用了一个单击事件加载这个combobox,想问下用什么方法能获取到这个combobox的value值
...全文
75 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
w490737485 2014-10-21
  • 打赏
  • 举报
回复
ed 输出来是个object类型的 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

61,124

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧