Mar 01, 2009, 2:09 PM
[CLOSED] GridPanel background image
Hi all,
my aim is to show an image on the grid if my data resultset is empty.
this css class works well, but I nedd to set it acording to data.
store
listeners
Matteo
my aim is to show an image on the grid if my data resultset is empty.
this css class works well, but I nedd to set it acording to data.
.x-grid3-body
{
height: 100px !important;
background: url(images/myImage.png) no-repeat 10px 10px !important;
}
I tried in several ways without success, here it is some of them:store
listeners
<Load Handler="
var style = {
'height' : '100px',
'background-image' : 'url(images/infoFilters.png)'
};
if(this.data.length == 0)
{
#{GridPanel1}.body.applyStyles(style);
#{GridPanel1}.body.repaint(); // for test
}
" />
// ---
<Load Handler="
if(this.data.length == 0)
{
#{GridPanel1}.body.addClass('myCssClassSettingBgImage');
#{GridPanel1}.body.repaint(); // for test
}
" />
ThanxMatteo