This is a migrated thread and some comments may be shown as answers.

[Solved] Setting the image for RadGrid header

4 Answers 206 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Iain
Top achievements
Rank 1
Iain asked on 03 Jun 2008, 09:48 AM
I've been searching, but I can't find a solution to this problem.

I'm trying to set a background image for a RadGrid header.  I've tried various things, using pointers from these forums and the exmample found here.

I've still not been able to make it stick.  I'm probably missing something obvious, can anyone see what?

Stripped down project can be download from here.

~I

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 03 Jun 2008, 10:42 AM

Hi Iain,

Can you try setting the BackGround Image for the Header as shown below.

ASPX:

<telerik:RadGrid id="RadGrid1" DataSourceID="SqlDataSource1" runat="server" > 
    <HeaderStyle CssClass="RadGridHeader"></HeaderStyle> 


CSS:
.RadGridHeader  
{  
  background-image: url(sales_header.gif);  
  background-repeat: repeat-x;  
  background-color: #f3f4f0;  

Princy.
0
Iain
Top achievements
Rank 1
answered on 03 Jun 2008, 11:05 AM
Hi Princy

I tried that and it didn't seem to work.  I've modifed the temp project to reflect.

http://www.filefactory.com/file/3894b4/

~Iain
0
Shinu
Top achievements
Rank 2
answered on 03 Jun 2008, 11:27 AM
Hi,

Try setting !Important in the CSS and see whether the BackGround image is being rendered.

CSS:
.RadGridHeader   
{   
  background-image: url(sales_header.gif) !Important;   
  background-repeat: repeat-x;   
  background-color: #f3f4f0;   
}  



Thanks
Shinu.
0
Iain
Top achievements
Rank 1
answered on 03 Jun 2008, 12:14 PM
Hi Shinu

I've just tried your suggestion.  The image isn't being rendered out. (I viewed source - that would tell me wouldn't it? - Telerik doesn't take the image and munge it in some way does it?)

Still confused.

~I
Tags
Grid
Asked by
Iain
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Iain
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or