1

アプリケーションの起動時に、コンボ ボックスが結果をプルアップ (展開) し、フォーム内のコンボ ボックスにフォーカスします。アプリケーションの起動時に、このコンボ ボックスが自動的にフォーカスおよび展開されないようにするにはどうすればよいですか? 注、構成「selectOnFocus」をtrueとfalseに設定しようとしましたが、何もしませんでした。

                    width: 540,
                    labelAlign: 'right',
                    xtype: 'combo',
                    fieldLabel: 'Table',
                    emptyText: 'keyword search by table name...',
                    store: tableStore,
                    valueField: 'id',
                    displayField: 'value',
                    mode: 'remote',
                    name: 'table',
                    autoSelect: false,
                    selectOnFocus: true,
                    //shadow:true,
                    //forceSelection: true,
                    //triggerAction: 'all',
                    hideTrigger: true,
                    //multiSelect:true,
                    //typeAhead: true,
                    //minChars: 1,

                    listeners: {
                        change: function (obj, newValue, oldValue, eOpts) {
                            tableStore.proxy.extraParams.keyword = newValue;
                            tableStore.load();
                            this.expand();
                        }
                    }  // listeners
4

1 に答える 1

1

問題は、フォームの読み込み時に「変更」リスナーがトリガーされることです。

this.expand() 呼び出しが必要ですか?

于 2012-10-25T00:33:04.307 に答える