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,176
    Vote Rating
    119
    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

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..." hd porno faketaxi