easyui笔记:datagrid 编辑结束时combobox显示value而不显示text

来源:互联网 发布:不可逆矩阵qr分解 编辑:程序博客网 时间:2024/06/07 03:11


  1. <th data-options="field:'UserLevelId',width:100,  
  2.                         formatter:function fmLevelAJ(value, row) {  
  3.                              return row.UserLevelId;  //这两个名字不能相同
  4.                         },  
  5.                         editor:{  
  6.                             type:'combobox',  
  7.                             options:{  
  8.                                 textField:'UserLevelName',  
  9.                                 valueField:'UserLevelId',  
  10.                                 url:'xx',  
  11.                                 editable:false                                 
  12.                             }  
  13.                         }">会员等级</th>  

阅读全文
1 0