诶诶诶略 2016-09-02 02:45 采纳率: 0%
浏览 1431

combogrid多选时,只能获取最后一个选中的值


style="width: 214px;"
data-options="
required:true,
panelWidth:400,
panelHeight:350,
fitColumns:true,
idField:'type',
textField:'desc',
pagination : true,
pageSize : 10,
pageList : [ 10, 20, 30, 40, 50 ],
editable:false,
multiple: true,
url:'${pageContext.request.contextPath}/typeController/dataGrid',
toolbar : '#toolbar2',
columns:[[
{field:'ck', checkbox:true },
{field:'type', title:'类型',width:200},
{field:'desc', title:'说明',width:200}
]],
onLoadSuccess:showTransType,
onSelect:function(val1,val2){
$('#type').val(val2.type);
}
">

选中后在input文本框里只显示选中的最后一个值
  • 写回答

1条回答 默认 最新

  • devmiao 2017-02-05 15:32
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思
  • ¥30 BC260Y用MQTT向阿里云发布主题消息一直错误
  • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
  • ¥15 划分vlan后,链路不通了?
  • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
  • ¥15 Vue3 大型图片数据拖动排序
  • ¥15 Centos / PETGEM
  • ¥15 划分vlan后不通了
  • ¥20 用雷电模拟器安装百达屋apk一直闪退