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.

Hybrid View

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    43
    Vote Rating
    0
    manlsea is on a distinguished road

      0  

    Default If ComboBox's valueField is int type field, It will not work properly.

    If ComboBox's valueField is int type field, It will not work properly.


    var themeStore = Ext.create('Ext.data.Store', {
    fields: ['value', 'name'],
    data: [
    { value: 0, name: "default" },
    { value: 1, name: "access" },
    { value: 2, name: "gray" },
    { value: 3, name: "scoped" }]
    });

    var languageStore = Ext.create('Ext.data.Store', {
    fields: ['value', 'name'],
    data: [
    { value: "en", name: "English" },
    { value: "zh", name: "Chinese"}]
    });

    items: [{
    xtype: 'combobox',
    name: 'Language',
    queryMode: 'local',
    maxLength: 16,
    fieldLabel: 'Language',
    displayField: 'name',
    valueField: 'value',
    //value: 'en',
    editable: false,
    store: languageStore
    }, {
    xtype: 'combobox',
    name: 'Theme',
    queryMode: 'local',
    maxLength: 16,
    fieldLabel: 'Theme',
    displayField: 'name',
    valueField: 'value',
    value: 0,
    editable: false,
    store: themeStore
    }]

    form.findField('Language').select('en');

    form.findField('Theme').select(0);

    As below

    noname.png

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,519
    Vote Rating
    813
    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


    You shouldn't need to use the select method. This works as expected:

    Code:
    var themeStore = Ext.create('Ext.data.Store', {
        fields: ['value', 'name'],
        data: [
            { value: 0, name: "default" },
            { value: 1, name: "access" },
            { value: 2, name: "gray" },
            { value: 3, name: "scoped" }]
    });
    
    var languageStore = Ext.create('Ext.data.Store', {
        fields: ['value', 'name'],
        data: [
            { value: "en", name: "English" },
            { value: "zh", name: "Chinese"}]
    });
    
    new Ext.panel.Panel({
        renderTo : document.body,
        width    : 400,
        height   : 400,
        title    : 'Test',
        items    : [
            {
                xtype : 'combobox',
                name: 'Language',
                queryMode: 'local',
                maxLength: 16,
                fieldLabel: 'Language',
                displayField: 'name',
                valueField: 'value',
                value: 'en',
                editable: false,
                store: languageStore
            },
            {
                xtype: 'combobox',
                name: 'Theme',
                queryMode: 'local',
                maxLength: 16,
                fieldLabel: 'Theme',
                displayField: 'name',
                valueField: 'value',
                value: 0,
                editable: false,
                store: themeStore
            }
        ]
    });
    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
    Apr 2010
    Location
    China
    Posts
    43
    Vote Rating
    0
    manlsea is on a distinguished road

      0  

    Default OH, my god

    OH, my god


    I'm sure used the select method.

    form.findField('Language').
    select('en');

    form.findField('Theme').select(0);

    But, I can notget the righteffect by select(0).

Thread Participants: 1