BUG 0000 adding the default message when "no record found" on the main grids

This commit is contained in:
Erik Amaru Ortiz
2011-05-05 16:11:53 -04:00
parent daad1f78f8
commit 13296e5d68
4 changed files with 263 additions and 248 deletions

View File

@@ -804,3 +804,13 @@ antes funcionaba.
background-image:url( /images/icons_silk/sprites.png) !important;
background-position:0 -8929px !important;
}
.x-grid-empty{
text-align: center;
position: absolute;
top: 40%;
left: 40%;
font-size: 15px;
color:black filter:progid:DXImageTransform.Microsoft.Alpha(opacity=80);
opacity: .55;
-moz-opacity: .55;
}

View File

@@ -1195,7 +1195,9 @@ Ext.onReady ( function() {
//autoHeight: true,
layout: 'fit',
viewConfig: {
forceFit:true
forceFit:true,
cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND)
},
listeners: {
rowdblclick: openCase,

View File

@@ -197,7 +197,11 @@ Ext.onReady(function(){
enableHdMenu : true,
frame : false,
columnLines : false,
viewConfig : {forceFit:true},
viewConfig: {
forceFit:true,
cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND)
},
tbar: [cancelEditMembersButton,{xtype: 'tbfill'},'-',searchTextA,clearTextButtonA],
//bbar: [{xtype: 'tbfill'}, assignAllButton],
listeners: {rowdblclick: AssignUsersAction},
@@ -229,8 +233,7 @@ Ext.onReady(function(){
//bbar: [{xtype: 'tbfill'},removeAllButton],
listeners: {rowdblclick: function(){
(availableGrid.hidden)? DoNothing() : RemoveUsersAction();
}
}
}}
});
buttonsPanel = new Ext.Panel({

View File

@@ -164,7 +164,9 @@ Ext.onReady(function(){
groupTextTpl: '{text}'
}),*/
viewConfig: {
forceFit:true
forceFit:true,
cls:"x-grid-empty",
emptyText: (TRANSLATIONS.ID_NO_RECORDS_FOUND)
},
cm: new Ext.grid.ColumnModel({
defaults: {
@@ -192,9 +194,7 @@ Ext.onReady(function(){
{header: TRANSLATIONS.ID_PRO_DEBUG, dataIndex: 'PRO_DEBUG_LABEL', width: 50, align:'center'}
]
}),
store: store,
tbar:[
{
text:TRANSLATIONS.ID_NEW,