Threaded View
-
7 Dec 2011 3:25 PM #1
Dataview itemtpl vs tpl
Dataview itemtpl vs tpl
Apparently tpl is no longer functioning in Dataviews the way they used to be (ie accessing the configured store), and we now must use itemTpl and forego the 'itemSelector' configuration to tell us what triggers an item select.
So - the question is ... how do I achieve the same looping mechanism in a dataview now ?
I have data which I have to wrap in a table structure, and have each item as a cell in that table.
This no longer works as far as I can tell. In fact - it seems rather silly that itemTpl can take a XTemplate which understands the <tpl for="."> mechanism since the Template is only performed on the single record.
Suggestions ?
Thank you!
Kevin
The above is what I need to get working again. It doesn't. Switching to itemTpl does - but of course, creates a table for each item. :-(Code:tpl: new Ext.XTemplate( '<table border=0>', '<tr>', '<tpl for=".">', '<td>{random data from record here}</td>', '</tpl>', '</tr>', '</table>' )
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1206
in
2.0.


Reply With Quote