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
    Aug 2011
    Location
    United Kingdom
    Posts
    8
    Vote Rating
    0
    craigwalshuk is on a distinguished road

      0  

    Default [solved] Pushing a list onto a dataview that is connected to a store.

    [solved] Pushing a list onto a dataview that is connected to a store.


    I've been trying to get this working for a few hours now with no luck. I have a controller that references a navigation view. In the navigation view is a panel with a button. I want to be able to tap the button and push a list of Tweets onto the dataview. Here is the code I have so far in the onButtonTap action:

    Code:
    this.getSocialNavigation().push({
        xtype: 'list',
        id: 'tweetList',
        itemTpl: [
            '<div>',
            '{text}',
            '</div>'
        ],
        store: 'Tweets',
        title: 'Tweet List'
    });
    When I tap the button, the list gets pushed to the dataview but there is only one item in the list and it is blank. How do I get the data from my store to populate the list? I should probably mention that the store is being auto loaded successfully loads the data I need.

    Kind Regards,
    Craig Walsh.
    Last edited by craigwalshuk; 10 Jul 2012 at 1:42 AM. Reason: Adding solved to the title

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Location
    United Kingdom
    Posts
    8
    Vote Rating
    0
    craigwalshuk is on a distinguished road

      0  

    Default [solved] Just being a bit thick!

    [solved] Just being a bit thick!


    I noticed that my store was only loading one record. I added the appropriate root property and now I can get to my data. Doh!

  3. #3
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,064
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Glad to hear you figured it out
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread