数据的转换后

来源:互联网 发布:mac上怎么切换输入法 编辑:程序博客网 时间:2024/05/21 09:17
(例如   你选择的时候显示 :   张三(中国),最终显示 张三   上传数据需要是zs)
                    header:"负责人",
                    dataIndex:'username',
                    width:80,
                    sortable:true,
//                    hidden:true,
                    editor:new Ext.form.ComboBox({
                        store : userStore,
                        emptyText : "至少输入两个汉字",
                        mode:"remote",
                        triggerAction : "all",
                        displayField : "text",
                        valueField : "username",
                        minChars :1,
                        queryParam : "condition",
                        pageSize : 10,
                        listWidth:200,
                        listeners:{
                            select:function(cmb,record,index){
                                grid.getStore().getAt(selectRowIndex).set("useraccount",record.data["value"]);
                                grid.getStore().getAt(selectRowIndex).set("username",record.data["username"]);
                            },
                            focus:function(th){
                                th.focus(true);
                            }
                        }
                    })
               
阅读全文
0 0