hi I made a list that has a productname and price the list is an item of a panel en the panel has a dockeditem which is a toolbar. i want the sum of price inside the toolbar so that people can see the total price.
my code:
new Ext.Panel({
layout: 'fit',
flex: 1,
items: [
new Ext.List({
layout: 'fit',
title: 'Winkelwagen',
store: NestedListDemo.Winkelwagen_Store,
flex: 1,
itemTpl : '{title} €{prijs}'
})],
dockedItems: [{
xtype: 'toolbar',
dock: 'bottom',
title: 'Totaal'
}]
})
My store:
NestedListDemo.Winkelwagen_Store = new Ext.data.JsonStore({
model: 'ListProductItem',
storeId: 'WinkelwagenStore',
data: [
],
autoLoad: true
});
Could anyone please tell me how to do that because i have no idea