Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    35
    Vote Rating
    0
    jakejamessteele is an unknown quantity at this point

      0  

    Default Only allow combo box to be chosen once in a group of combo boxes.

    Only allow combo box to be chosen once in a group of combo boxes.


    Hey Sencha,

    Was hoping for some help, I have a trigger system developed, however in my Match All conditions it makes sense that each dropdown box value could only be selected once.

    Aka:
    Match All
    Time is 8:00
    Time is 9:00
    Would always fail as it would never meet both those conditions... I want time to disappear from the other combo boxes while its selected and disappear when its changed.

    Was thinking of removing it from the store and then refreshing the combo boxes, only problem is I force selection and it clears it from the combo box.

    Ok so Here was my solution... I solved it
    Code:
    ####.####.Parameter = new Ext.extend(Ext.form.ComboBox, {
            type: 'all',
            oldrec: null,
            store: null,
            constructor: function (config) {
                var me = this;
                if (config.type === 'all') {
                    me.store = AllConditionStore;
                } else {
                    me.store = ####.####('RuleParameterType');
                }
                config = Ext.apply({
                    store: me.store,
                    valueField: 'id',
                    hideActive: true,
                    triggerAction: 'all',
                    lazyRender: true,
                    allowBlank: false,
                    mode: 'local',
                    displayField: 'text',
                    listeners: {
                        select: function (me, recs, index) {
                            if (me.oldrec !== null)
                                me.store.add(me.oldrec);
                            me.oldrec = recs;
                            me.store.remove(recs);
                        }
                    }
                }, config);
                ####.#####.Parameter.superclass.constructor.call(this, config);
            }
    });
    
    
    Ext.reg('####.####.parameterCombo', ####.####.Parameter);

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,522
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Code:
    new Ext.extend
    That doesn't look good.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    35
    Vote Rating
    0
    jakejamessteele is an unknown quantity at this point

      0  

    Default


    Working great, what do you recommend?

Thread Participants: 1

Tags for this Thread