融为开发平台AimComboBox用法,主要用于editorgrid

 var statustempcb = new Ext.ux.form.AimComboBox({
                            id: 'statustempcb',
                            enumdata: AimState["StatusTemp"],
                            lazyRender: false,
                            allowBlank: false,
                              autoLoad: true,
                            forceSelection: true,
                           //blankText: "none",
                            //valueField: 'text',
                            triggerAction: 'all',
                            mode: 'local',
                            listeners: {
                                blur: function(obj) {
                                    if (grid.activeEditor) {
                                        var rec = store.getAt(grid.activeEditor.row);
                                        if (rec && obj.value) {
                                            grid.stopEditing();
                                            rec.set("STATUSTEMPFNAME", Ext.get('statustempcb').dom.value);
                                            rec.set("STATUSTEMPFID", obj.value);
                                            $.ajaxExec("UpdateStatusTemp", { USERID: rec.get("USERID"), STATUSTEMPFID: rec.get("STATUSTEMPFID"),
                                                STATUSTEMPFNAME: rec.get("STATUSTEMPFNAME")
                                            }, function(rtn) {
                                              store.commitChanges();
                                           })
                                       }
                                   }
                                }
                            }
                       });

posted @ 2014-02-10 14:04  silence2010  阅读(122)  评论(0)    收藏  举报