1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    19
    Vote Rating
    0
    hlovbeyond is on a distinguished road

      0  

    Default Blank picker when adding data (created in architect) (Sencha touch 2)

    Blank picker when adding data (created in architect) (Sencha touch 2)


    Hi all,
    I have a problem when adding data to a picker if this has been created in Architect and I got the reference using:
    var weekendingPicker = Ext.widget('WeekEndingSelect');
    This works:
    var _weekendingPicker = new Ext.Picker({
    config: {
    hideOnMaskTap: true
    },
    slots: []
    })
    This doesn't:
    Ext.define('TimeZone.view.WeekEndingSelect', {
    extend: 'Ext.picker.Picker',
    alias: 'widget.WeekEndingSelect',
    config: {
    hideOnMaskTap: true,
    slots: [
    ]
    }

    });


    The data that I'm adding is:
    var _data = {
    name: 'weekending',
    title: 'Weekending',
    data: []
    };


    The data is:
    _data.data[0] ={
    text:'one',
    value:'one'
    }

    And I'm adding it using:
    weekendingPicker.add(_data);

    Thanks
    H

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,850
    Vote Rating
    126
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    What does your picker definition look like?

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    19
    Vote Rating
    0
    hlovbeyond is on a distinguished road

      0  

    Default


    Ext.define('TimeZone.view.WeekEndingSelect', {
    extend: 'Ext.picker.Picker',
    alias: 'widget.WeekEndingSelect',
    config: {
    hideOnMaskTap: true,
    slots: [
    ]
    }

    });

    I got a reference :
    var weekendingPicker = Ext.widget('WeekEndingSelect');

    Create the data
    var _data = {
    name: 'weekending',
    title: 'Weekending',
    data: []
    };

    data.data[0] ={
    text:'one',
    value:'one'
    }

    Add the data to the picker:
    weekendingPicker.add(_data);

    The picker is displayed blank
    Cheers
    H

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."