View Full Version : Doubt about RowExpander + Ext.Template

10 Jul 2010, 7:36 PM
Good night,I have some problems In use the Ext.Template with RowExpander plugin

Look my codes:

data of store

"franchiseTypeName":"Copia e Impress\u00e3o Colorido","productFranchise":[]},{"id":8,"rentalAgreement":1,
"excluded":null,"franchiseTypeName":"Copia e Impress\u00e3o Colorido",
"productSerialNumber":"100000","productName":"Produto Padr\u00e3o de Teste","productModel":"vs001",

var tpl = new Ext.Template(
'<p><tpl for="productFranchise">',
'<tpl><p>{#} {productName}, {id}, {product}</p></tpl>',

var expander = new Ext.ux.grid.RowExpander({
tpl : tpl


How you can see, the program does not execute the "for" of template, and does not access the properties of "productFranchise",
The id showed in the tpl is of record and not of sub-record

11 Jul 2010, 11:58 AM
What is that empty <tpl>...</tpl> doing in your template?

11 Jul 2010, 1:21 PM
Sorry I was basing on this example: http://www.sencha.com/deploy/dev/examples/core/templates.html but I have just realized that for this case, it uses the Ext.XTemplate and not the Ext.Template, sorry, but using the XTemplate it works fine. Thanks Condor