View Full Version : problem with XTemplet

manish khamar
26 Aug 2011, 3:49 AM
I have one serious problem
for(var i=0;i<picstore.length;i++)
alert(picstore[i]); //is my array which consist multiple images String
Ext.regModel('User', {
fields: ['srno']

var c = new Ext.data.Store({

model: 'User',
autoLoad: true,

data: [recdata],


var myTpl = new Ext.XTemplate(
'<tpl for="."><div class="pic"><img src="'+picstore['{srno}']+'" width="100" height="50" ></div></tpl>'

srno consist: 0,1,2,..........,9

I want to display picstore array in XTemplate ,but i can not get proper index so image.
So pls help me to get data from aray.