English 中文(简体)
a. 不间断地装上2个 com子的ja子店
原标题:Endless loading of an ajax store with 2 comboboxes

我在小组中有两例会讲话小组。

Ext.define( AddressPanel , {
    extend:  Ext.tab.Panel ,
    initComponent: function() {
        this.items = [
            {
                title:  Stations ,
                itemId :  pointStation ,
                closable: false,
                items:[
                    {
                        xtype:  combo ,
                        fieldLabel:  station ,
                        store: stationStore,
                        queryMode:  remote ,
                        displayField:  name ,
                        valueField:  id ,
                        editable : false
                    }   

两者都含有与同一基本储存有关的 com箱。

var stationStore = Ext.create( Ext.data.Store , {
fields: [ id ,  name ],
proxy: {
    type:  ajax ,
    url :  /address/stationname 
}
});

我可以首先打开 com子,选择一个站。

然后,我可以从二审中打开 com子,选择另一个站。

罚款。

但是,当我从“地址Panel”的初审开始打开“ com”箱时,我便无休止的负荷。

我怎么能加以纠正?

Thank you in advance.

问题回答

你可以给你的 com子增添一个id子,在你从头到第二时,你可以把 com子重新打上 com子。

Ext.getCmp( id ).reset();

I made two copies of the store and set the store config of the the first combo to the first copy of the store and the store config of the second combo to the second copy.

它提供了帮助。





相关问题
WPF Datagrid, Setting the background of combox popup

I would like to change the color of the popup background when using a DatagridComboboxColumn in the WPF Toolkit datagrid. I ve edited the Template for a normal Combobox and it works great for selected ...

How to insert ComboBox item into ListBox? [winforms]

The question is very simple, How to insert ComboBox selected item into ListBox using c#? I have tried with this: listbox.Items.Add(combobox.SelectedItem); and some other permutations but it always ...

How do I bind a ComboBox to a one column list

I ve seen how to bind a ComboBox to a list that has columns like this: ItemsSource="{Binding Path=Entries}" DisplayMemberPath="Name" SelectedValuePath="Name" SelectedValue="{Binding Path=Entry}" But ...

Wpf Combobox Limit to List

We are using Wpf Combobox to allow the user to do the following things: 1) select items by typing in the first few characters 2) auto complete the entry by filtering the list 3) suggesting the first ...

热门标签