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.

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Location
    Italy
    Posts
    11
    Vote Rating
    0
    davide.cecconi is on a distinguished road

      0  

    Default Problem with select with placeHolder and null value

    Problem with select with placeHolder and null value


    Hi,
    I bind a property of record to a selectfield with required = false ... if It property is null the selectfield will to show the palceHolder text (perfect)
    but when I want select a item of selectfield the FIRST item don't work, If I select the second.. or another item the item will be select correctly but never the First item.. is impossible select first item when property is null

    If property of record is not null the selectfield work perfectly, I able to select first, second.. and more item
    Bye
    Davide

    code
    Code:
    {
    xtype: 'selectfield',cls:'fontf',
    name: 'idStagione',id:'NuovoOrdine_Stagione',
    label: 'Collezione:',
    valueField: 'idStagione',
    displayField: 'c_ComboDisplay',
    required: false,placeHolder: '...',
    autoComplete: false,
    usePicker: false
    }

  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


    The next release will have a new config that will stop the select field from selecting the first item in the list as being the value. This is what stopped it that the first item in the list/picker was made the value.
    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 Premium Member
    Join Date
    May 2012
    Location
    Italy
    Posts
    11
    Vote Rating
    0
    davide.cecconi is on a distinguished road

      0  

    Default


    Hi,
    I resolve (perhaps) problem with this code ovveride "showPicker"

    change old line of code

    Code:
    record = store.getAt((index == -1) ? 0 : index);
    with

    Code:
    record = (index == -1) ? null :  store.getAt(index)
    before if select field value is NULL the index return -1 and the old code select the first item of list when it is show (it is no correct) ... and user not be able to select first item

    now , if selct field value is null nothing is select in the list and user is able to select the first item too

    bye
    Davide Cecconi

    Code:
    showPicker: function() {
            var store = this.getStore();
            //check if the store is empty, if it is, return
            if (!store || store.getCount() === 0) {
                return;
            }
    
    
            if (this.getReadOnly()) {
                return;
            }
    
    
            this.isFocused = true;
    
    
            //hide the keyboard
            //the causes https://sencha.jira.com/browse/TOUCH-1679
            // Ext.Viewport.hideKeyboard();
    
    
            if (this.getUsePicker()) {
                var picker = this.getPhonePicker(),
                    name   = this.getName(),
                    value  = {};
    
    
                value[name] = this.record.get(this.getValueField());
                picker.setValue(value);
                if (!picker.getParent()) {
                    Ext.Viewport.add(picker);
                }
                picker.show();
            } else {
                var listPanel = this.getTabletPicker(),
                    list = listPanel.down('list'),
                    store = list.getStore(),
                    index = store.find(this.getValueField(), this.getValue(), null, null, null, true),
                    record = (index == -1) ? null :  store.getAt(index) 
    
    
                if (!listPanel.getParent()) {
                    Ext.Viewport.add(listPanel);
                }
    
    
                listPanel.showBy(this.getComponent());
                list.select(record, null, true);
            }
        },

  4. #4
    Sencha User
    Join Date
    Apr 2011
    Location
    Spain
    Posts
    77
    Vote Rating
    1
    Fanny144 is on a distinguished road

      0  

    Default Color placeHolder

    Color placeHolder


    I get put the placeHolder in the component selectfield and datepicker but the color of the text is black as it was the actual value of the field.

    I want it tobe gray color and I know that the css
    Code:
    .x-spinner .x-input-el, .x-field-select .x-input-el {
    
    
    • -webkit-text-fill-color: #000;
    • -webkit-opacity: 1;
    }


    set the color of all text in the setfield and datepicker to black, but if you delete this properties the placeHolder get gray color but
    then the rest of the text in the field.

    Does anyone know how I could change??


    Thanks

    sorry for my english, I hope I explained correctly

Thread Participants: 2