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

RadGrid header background image / color

2 Answers 93 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Venkatakrishna
Top achievements
Rank 1
Venkatakrishna asked on 20 Jul 2010, 10:09 AM

Hi,

 

We are finding difficult to apply background color/image to the Rad Grid header as it is pointed in the screen shot attached.  I will appreciate if any one can give the solution. 

Thanks

Venkat

  

 

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Jul 2010, 11:12 AM
Hello Venkatakrishna,


Set the CommandItemStyle -> BackColor property as per your requirement.

Mark-up:
<MasterTableView CommandItemDisplay="Top" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
    <CommandItemStyle BackColor="Red" />
    <CommandItemSettings ShowAddNewRecordButton="false" />
       . . .


Also add the following CSS on page to override default setting (image) for CommandItem.

CSS:
<style type="text/css">
    .rgCommandRow
    {
        background-image: none !important;
    }
</style>


-Shinu.
0
Venkatakrishna
Top achievements
Rank 1
answered on 20 Jul 2010, 12:23 PM
It works fine ! Thank you so much !

Venkat
Tags
Grid
Asked by
Venkatakrishna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Venkatakrishna
Top achievements
Rank 1
Share this question
or