关于easyui table中的combobox显示问题

wan368500 2013-03-28 04:54:13
							<th data-options="field:'compareSign',width:80,align:'left',sortable:'true',
formatter:function(value,row,index){
return row.text;
},
editor:{
type:'combobox',
options:{
valueField:'value',
textField:'text',
data:[{value:'=',text:'等于'},{value:'<>',text:'不等于'},
{value:'>',text:'大于'},{value:'>=',text:'大于等于'},
{value:'<',text:'小于'},{value:'<=',text:'小于等于'},
{value:' like ',text:'类似'},{value:' like ',text:'左类似'},
{value:' like ',text:'右类似'}]
}
}">比较符</th>

上面是用jquery easyUI 中的table单元格的editor为combobox情况,我想问的是在鼠标离开该编辑行的时候能不能显示text,就是其中的“大于”,“等于”什么的,我现在是显示“=”,“>”,formatter那么写也没用,求助!!
...全文
123 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
wan368500 2013-06-03
  • 打赏
  • 举报
回复
引用 1 楼 wangxiongpo 的回复:
你怎么解决的呀? 我现在也是这个问题?!
var ed = $('#dg').datagrid('getEditor', {index:editIndex,field:'productid'});//获取指定的编辑器, options 参数包含两个特性: index:行的索引。field:字段名。 var productname = $(ed.target).combobox('getText');//get combobox text(后来选中的值) $('#dg').datagrid('getRows')[editIndex]['productname'] = productname;
wangxiongpo 2013-05-10
  • 打赏
  • 举报
回复
你怎么解决的呀? 我现在也是这个问题?!

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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