---
title: "lovcombo使用注意"
author: "sunlong"
date: "2012-08-07T15:50:19Z"
tags: []
categories: ["Web前端"]
slug: "lovcombo"
draft: false
lastmod: "2012-08-07T15:50:19Z"
id: 1623449
url: "https://sunlong.iteye.com/blog/1623449"
---

注意要加上

Ext.override(Ext.ux.form.LovCombo, {  
    beforeBlur: Ext.emptyFn  
});

var comboSG = new Ext.ux.form.LovCombo({  
            fieldLabel: '选择安全组',  
            hiddenName:'virtualMachine.securityGroupIds',  
            editable : false,  
            store: new Ext.data.JsonStore({  
                fields: \['id', 'name'],  
                url: 'resource/cs/listSecurityGroups.action',  
                root: 'data'  
            }),  
            valueField: 'id',  
            displayField: 'name',  
            mode: 'remote',  
            triggerAction: 'all',  
            allowBlank: false,  
            autoScroll: true,  
            hideOnSelect:false  
        });