PDA

View Full Version : Empty Message Only Shows When I click Sort



Bigtime
25 May 2010, 6:37 AM
My Empty Message for the Below DD destination grids only appears when I click to sort on the column. Does anyone see any reason for this? I tried loading the empty store along with the source store, but that didn't do anything.

Thanks!



var contract_tab = new Ext.Panel({
layout: 'border',
height: 700,
items: [{
region: 'west',
xtype: 'panel',
split: true,
collapsible: true,
collapseMode: 'mini',
width: 200,
maxSize: 250,
items: [{
title: 'Billable Items',
xtype: 'grid',
id: 'billable_items_grid',
ddGroup: 'BillableItemsDDGroup',
enableDragDrop: true,
stripeRows: true,
ds: billable_items_ds,
cm: billable_items_cm,
autoHeight: true
}]

},
{
region: 'center',
xtype: 'panel',
width: 500,
items: [{
xtype: 'panel',
border: false,
items: [{
region: 'north',
split: 'true',
collapsible: true,
emptyText: 'Help',
collapseMode: 'mini',
layout: 'fit',
items: [{
title: 'One Time Fees',
xtype: 'grid',
id: 'one_time_fees_grid',
ds: onetime_fee_ds,
cm: onetime_fee_cm,
stripeRows: true,
ddGroup: 'OTFDDGroup',
enableDragDrop: true,
autoHeight: true,
viewConfig: {
emptyText: 'One Time Fees Go Here',
forceFit: true,
enableRowBody: true,
showMemberships: false
}
}]
},
{
region: 'center',
layout: 'fit',
items: [{
title: 'Recurring Fees',
xtype: 'grid',
id: 'recurring_fees_grid',
ds: recurring_fee_ds,
cm: recurring_fee_cm,
stripeRows: true,
ddGroup: 'RFDDGroup',
enableDragDrop: true,
autoHeight: true,
viewConfig: {
emptyText: 'Recurring Fees Go Here',
forceFit: true,
enableRowBody: true,
showMemberships: false
}
}]
}]
}]
}]

});

Bigtime
2 Jun 2010, 8:24 AM
Any ideas on this?

veroxii
8 Jun 2010, 4:29 AM
I'm seeing this too. Similar config, with emptyText set inside the viewConfig of a GridPanel. On an empty grid the text does not display, until you click on any of the headers and then the text fades in and appears.

darthwes
8 Jun 2010, 5:31 AM
deferEmptyText : Boolean
True to defer emptyText being applied until the store's first load (defaults to true).

It's a viewConfig config property.