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

Applying background color

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajz
Top achievements
Rank 1
Rajz asked on 11 Oct 2010, 06:38 AM
We have been using Telerik Grid and customizing its look and feel.

We have changed word wrap into break-word and have changed background color of few rows.

Upon selecting a row, the row selected was not entirely highlighted. Please check the attached screenshot

Code snippet used to hightlight row is given:

if (e.Item is GridDataItem)

  {

    GridDataItem dataItem = e.Item as GridDataItem;

    dataItem.BackColor = System.Drawing.Color.Tan;

    dataItem.Font.Bold = true;

 }

Please let me know a valid workaround

Thank you

Regards
Raj

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 11 Oct 2010, 08:32 AM
Hello raj,


SelectedItem style can be set from CSS as show below.

Style:
<style type="text/css">
    .rgSelectedRow td
    {
        background-color: Tan !important;
    }      
</style>

Hope this helps. :)


-Shinu.
Tags
Grid
Asked by
Rajz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or