PDA

View Full Version : problem while showing nested data in list...



iriq
19 Jul 2011, 10:27 AM
hi,
I have an app with MVC structure. i am having a problem while showing data in list. the list showed data correctly when the Store first loaded after Ajax response. but when i display that similar data from already loaded store the nested data does not displayed in the list. Here is the code for my List.



Application.views.SupplementDataList = Ext.extend(Ext.List, {
itemTpl : [
'<tpl for=".">',
'<div class="next"><div>{timing_name}</div></div>',
'<tpl for="supplements">',
'{name}<br>',
'</tpl>',
'</tpl>'
],
store: "SupplementTimes"
}
});


The problem which i have figured out is that the structure of the store is changed when i used already loaded store. i have attached an image to illustrate my problem.
27041

here is another screen shot.
27042

any quick reply is my pleasure. thanks