Cascading Combobox in extjs

后端 未结 3 412
轮回少年
轮回少年 2021-01-16 03:51

I want to do cascading combobox in extjs. I have to comboboxes

Course combobox

{ 
    xtype : \'combobox\',  
    emptyText : \'         


        
相关标签:
3条回答
  • 2021-01-16 04:11

    Is it showing a LoadMask the second time you load it?

    Use this to override that behaviour:

    Ext.override(Ext.LoadMask, {
        onHide: function() {
        this.callParent();
      }
    });
    
    0 讨论(0)
  • 2021-01-16 04:20

    Most likely your issue is that the store.load() is async. Try passing in the rest of your logic (filtering etc) in the callback of load.

    0 讨论(0)
  • 2021-01-16 04:31

    It looks like you want to clear the filter you already applied. To remove filters that have been applied there is a clearFilter() method available on the store. You can mix that into your code similar to this:

    comboModule.clearValue();  
    // new line to clear any filter applied to the store
    comboModule.getStore().clearFilter(true);  
    comboModule.getStore().filter('courseId',combo.getValue());  
    
    0 讨论(0)
提交回复
热议问题