datagrid combobox的显示值的问题
2017-08-02 09:56
369 查看
function getman(a) { $.post("for_job.ashx", { action: "getjob", id: a }, function (data) { jobdata = data; getman2(a, data) }, "json") }
function getman2(a,b) { $('#mantable').edatagrid({ fit: true, rownumbers: true, singleSelect: true, url: 'for_emplyee.ashx', toolbar: "#departmentbuttons", queryParams: { action: "getdepartmentman", id: a }, columns: [[ { field: "id", title: "标识", width: 50, hidden: true }, { field: "userid", title: "工号", width: 80, editor: "text", align: "center" }, { field: "name", title: "姓名", width: 100, editor: "text", align: "center" }, { field: "jobid", title: "岗位", width: 150, formatter: function (value, row) {
//////这里是关健,对比找出显示值 for (var i = 0; i < jobdata.length; i++) { if (jobdata[i].sid == value) { return jobdata[i].jobname; } } }, editor: { type: 'combobox', options: { valueField: 'sid', textField: 'jobname', data: jobdata, }, required: false } }, { field: "u_order", title: "序号", width: 100, editor: "numberbox", align: "center" }, { field: "office_tel", title: "办公电话", width: 150, editor: "numberbox", align: "center" }, { field: "tel", title: "手机号码", width: 150, editor: "numberbox", align: "center" }, { field: "office_no", title: "办公室", width: 120, editor: "text", align: "center" }, { field: "onjob", title: "在职情况", width: 100, editor: { type: 'combobox', options: { valueField: 'onjobvalue', textField: 'onjobtext', data: [{ onjobtext: "在职", onjobvalue: "在职" }, { onjobtext: "离职", onjobvalue: "离职" }] ,required:true}} }, { field: "departmentid", title: "所在部门ID", width: 250, hidden: true } ]] }); } getman('-');
相关文章推荐
- (1)、JEasyUI 之 Datagrid的Combobox 显示 textField 值的问题
- DataGridComboBoxColumn绑定后显示空白的问题
- (1)、JEasyUI 之 Datagrid的Combobox 显示 textField 值的问题
- 解决:easyui中的datagrid详情展开,combobox的级联操作,以及修复combobox总是显示value值的问题
- EasyUI中,DataGrid中的combobox显示异常问题
- (1)、JEasyUI 之datagrid的Combobox显示textField值的问题
- WPF:解决DataGrid横向滚动条无法显示的问题
- DataGrid的滚动条不显示问题
- extjs combobox下拉框显示位置问题
- DataGrid Repeater关于绑定列过长截断显示的问题
- 在Datagrid中显示ComboBox
- EasyUI组件datagrid不显示json数据问题
- Silverlight中DataGrid翻页或者滚动时CheckBox/RadioButton显示的问题
- EasyUI中tree,Datagrid,pagenation的使用EasyUI中Datagrid和pagenation进行关联时,再次点击pagenation时让表格数据显示的问题
- C#中为DataGrid显示右键菜单与右键切换当前行的问题
- Flex datagrid itemrenderer刷新显示错乱问题
- extjs combobox下拉框显示位置问题
- Ext中combobox在Grid里显示问题
- 解决AspNet中DataGrid GridView等列表控件导出Excel长数字显示成科学计数法的问题
- ext版本升级引起的combobox不能正常显示问题