PDA

View Full Version : paginator not appear



quintino
6 Apr 2010, 12:13 PM
Good Evening :D,
my problem width extjs seem endless...

I use a grid to showing data from a JSON...this grid is hidden until i get the data but, when i showing the data, the bbar width the paginator not appear...
this is the code of grid



var selModel = new Ext.grid.RowSelectionModel({singleSelect : true});
var grid = new Ext.grid.GridPanel({
title : 'Note con orario',
id : 'grid_note_date',
height : 130,
hidden : true,
autoWidth : true,
autoscroll:true,
stateful: true,
store : store_note,
stripeRows: true,
//view : gridView,
border : true,
colModel : colModel,
viewConfig: {
forceFit:true,
enableRowBody:true,
showPreview:true,
getRowClass : function(record, rowIndex, p, store){
if(this.showPreview){
p.body = '<p>'+record.data.excerpt+'</p>';
return 'x-grid3-row-expanded';
}
return 'x-grid3-row-collapsed';
}
},

// paging bar on the bottom
bbar: {
xtype : 'paging',
id : 'bbar_grid_note_date',
store: store_note,
pageSize : 25,
displayInfo : true
},

loadMask: { msg: 'Caricamento dati in corso...', store: store_note }
});

Ext.getCmp('grid_note_date').setVisible(true);