1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    33
    Vote Rating
    0
    mescalito2 is on a distinguished road

      0  

    Default How to use an store within a Container

    How to use an store within a Container


    Hi there!

    I'm using Sencha Architect 2.1

    I have an Store and a Ext.Container with a template, but how can I render the data in the store using the container and the template?

    I created a 1 minute video explaining the problem:
    http://www.youtube.com/watch?v=_HpR9h80D94

    Thanks!

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    129
    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


    hey mescalito2 -

    tpl and data configurations go together. There is no automagic data binding that happens here. Each time you want to update the data you can call setData.

    It sounds like what you are really looking for is a DataView. A DataView binds a store with an itemTpl for each record. The DataView is configured with an itemSelector which tells it how to map the record to a DOM node and vice versa.
    http://docs.sencha.com/touch/2-1/#!/...aview.DataView
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1

Tags for this Thread