-
5 Mar 2013 9:03 AM #1
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!
-
12 Mar 2013 12:10 PM #2
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.DataViewAaron Conran
@aconran
Sencha Architect Development Team


Reply With Quote