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.

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    29
    Vote Rating
    0
    binarious is on a distinguished road

      0  

    Default [beta2] Loading list's store the second time -> list is empty

    [beta2] Loading list's store the second time -> list is empty


    Hi,

    I have a simple list of objects. On that itemtap event I display another list in a modal dialog and load related items via the store. The first time works, but on the second try the list display its empty text.

    Code:
    onParteiListTap: function(dataview, index, target, record, e, options) {
    
    var store = Ext.getStore('BewerberStore'),
        tap_record = record;
    
    
    if(this.overlay) {
        Ext.Viewport.remove(this.overlay, true);
        this.overlay = null;
    }
    
    
    store.load();
    
    
    store.filterBy(function(record, id) {
        // he finds results every time
        return record.get('partei_id') == tap_record.get('id');
    });
    
    
    this.overlay = Ext.Viewport.add({
        xtype: 'panel',  modal: true,
        centered: true,  width: 300,
        height: 450,     layout: 'fit',
        styleHtmlContent: true,
    
    
        items: [
        {
            docked: 'top',
            xtype: 'toolbar',
            title: 'Bewerber ' + tap_record.get('name')
        },
        {
            xtype: 'list',
            emptyText: 'Nothing in here',
            itemTpl: [
            '<div><div class="bewerber_name">{name}</div>'+
            '<div class="bewerber_stimmen">{stimmen} Stimmen</div></div>'
            ],
            store: store
        }
        ],
        scrollable: true
    });
    
    
    this.overlay.show('pop');
    
    }
    This doesn't even work when I tap on the same list item as before.
    Attached Images
    Last edited by mitchellsimoens; 10 Feb 2012 at 6:09 AM. Reason: formatting
    -->

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


    Just as a test, what happens when you take out the filterBy?
    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
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    29
    Vote Rating
    0
    binarious is on a distinguished road

      0  

    Default


    Interesting... Without the filterBy or with always returning true it works.
    But I don't think my expression is the problem, because when I console.log it, I will get some false and some true results. So some objects should be displayed.
    -->

  4. #4
    Ext GWT Premium Member
    Join Date
    Oct 2011
    Posts
    29
    Vote Rating
    0
    binarious is on a distinguished road

      0  

    Default


    The filters need to be cleared before redefining.

    Code:
    store.clearFilter();
    -->

Thread Participants: 1

Tags for this Thread