Extjs Combo 컨트롤 드롭다운 선택 후 이벤트 트리거

1442 단어 ext
combo 컨트롤의 정의:
items: [
    {
        xtype: 'combo',
        id: "cbdomain",
        x: 60,
        y: 10, //27
        width: 120,
        editable: false,
        store:getAllDomainstore,
        mode: 'remote',
        valueFiled: 'domdesc',
        displayField:'domdesc',
        allowBlank: false,
        enabled:false,
        triggerAction: "all",
        selectOnFocus : true,
        forceSelection : true
    }
]


선택 방법 추가:
Ext.ComponentMgr.get("cbdomain").on('select',function (){
    var domainValue = Ext.ComponentMgr.get("cbdomain").getValue();
    var userName = Ext.ComponentMgr.get("cusername").getValue();
    		
    casestore.baseParams={				
        webAction:'getAllCases',
        username:userName,
        domain: domainValue,//Ext.ComponentMgr.get('cbdomain').getValue(),
        phrase: Ext.ComponentMgr.get('phraseSearch').getValue(),													
        logicForm: Ext.ComponentMgr.get('logicformSearch').getValue(),
        ignoreconflict:'true',
        start: 0,
        limit: 30
    };
			
    casestore.load();
});

좋은 웹페이지 즐겨찾기