Problem about change ComboBox's store dynamically

  1. #1

    Problem about change ComboBox's store dynamically

    I have a combobox(cmb) editor in gridpanel, cmb's store's data change dynamically:

    var dateOperData = [['=', '='], ['<>', '<>'], ['<', '<'], ['>', '>']];
    var strOperData = [['=', '='], ['<>', '<>'], ['<', '<'], ['>', '>'], ['like', 'like'], ['in', 'in']];
    
    var setEditor=function(e){
        var oper = Ext.getCmp('edComboOper');
        if(e.record.data.type='date')
            oper.getStore().loadData(dateOperData);
        else
            oper.getStore().loadData(strOperData);
    }
    
    ...
    
    <ext:gridpanel>
        <listener>
            <beforeEdit Fn="setEditor">
        </listener>
        ...
    </ext:gridpanel>
    Now, when combobox store data changed, I must click combobox two times, then the dropdown part will display
    Last edited by geoffrey.mcgill; Aug 04, 2010 at 5:34 AM.

Similar Threads

  1. Dynamically loading Store problem at runtime
    By marcelorosait in forum 1.x Help
    Replies: 14
    Last Post: Feb 14, 2012, 9:33 AM
  2. How to add store to a combobox dynamically.
    By Mr.Techno in forum 1.x Help
    Replies: 1
    Last Post: Jul 19, 2011, 4:08 PM
  3. Replies: 3
    Last Post: Jul 24, 2010, 4:31 PM
  4. [CLOSED] [1.0] Change Store Limit dynamically
    By MP in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 08, 2010, 12:59 PM
  5. Add Items to combobox dynamically problem
    By Dgsoft.ru in forum 1.x Help
    Replies: 7
    Last Post: Apr 13, 2009, 4:19 AM

Tags for this Thread

Posting Permissions