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

Grid Background Color get distorted on Row Selection

3 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 01 Nov 2012, 02:49 PM
Hi,
    I have set the Background Color for particular cell on some condition. when i select that row the color of rowselection and cell get getting displayed properly.Please find the attach image for the same.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Nov 2012, 04:55 AM
Hi,

Please try giving the selected row color in the CSS as follows.

CSS:
<style type="text/css">
    .RadGrid_Default .rgSelectedRow td
    {
        background-color: #6C6C6C !important;
    }
</style>

Here I have given the background-color for the default skin type.Change the color of the background depending upon the skin you have given.

Thanks,
Shinu.
0
Manishkumar
Top achievements
Rank 1
answered on 05 Nov 2012, 02:47 PM
I have tried this , but its not working is there any other solution
0
Pavlina
Telerik team
answered on 06 Nov 2012, 02:12 PM
Hello,

I suggest that you try using the approach suggested in this code library in order to resolve the problem you are facing: 
http://www.telerik.com/community/code-library/aspnet-ajax/grid/how-to-preserve-the-original-radgrid-selected-hover-row-background-when-using-itemstyle-backcolor.aspx

All the best,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Manishkumar
Top achievements
Rank 1
Pavlina
Telerik team
Share this question
or