PDA

View Full Version : Problem loading content into my DataView



scaron
30 Nov 2010, 11:42 AM
Hi everyone,

I have a problem with my DataView. It show only 26 of 41 records and in Firebug, the store load all the data correctly but don't show me all of them in the data view.

How can I fix this?

Here is my code:



StoreDataView = new Ext.data.JsonStore({
url:"GaleriePhoto.load.php?table=www_GaleriePhoto",
root:"data",
totalProperty:"total",
fields:[{name:"ArtID"},
{name:"ClassID"},
{name:"ThemeID"},
{name:"PhotoUrl"},
{name:"BGPhotoUrl"},
{name:"Title"},
{name:"Content"},
{name:"Actualite"},
{name:"ExpireDate"},
{name:"ActiveDate"},
{name:"EventDate"},
{name:"Modification_Date"},
{name:"Author"}]
})

StoreDataView.load();

TemplateListe = new Ext.XTemplate(
'<tpl for=".">',
'<div class="thumb-wrap" id="{ArtID}">',
'<div class="thumb"><img src="{PhotoUrl}" title="{Title}" /></div>',
'</div>',
'</tpl>');

DataViewImage = new Ext.DataView({
store:StoreDataView,
tpl:TemplateListe,
id:"dataview",
autoScroll:true,
singleSelect:true,
containerScroll:true,
overClass:"x-view-over",
itemSelector:"div.thumb-wrap",
emptyText:"Aucun enregistrement."
});


Thanks for your help, it's appreciate !