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

SortedBackColor displaying on top of selected row style

2 Answers 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hunter
Top achievements
Rank 1
Hunter asked on 15 Nov 2011, 06:11 PM
Hello guys!

I'm hoping this is an easy one. I've configured my radGrid to use a sorted back color by setting the following: SortingSettings-SortedBackColor="Green" and SortingSettings-EnableSkinSortStyles="true/false (tried both)". I've also set ClientSettings-Selecting-AllowRowSelect="true". When a user sorts a solumn (click column head) the column's sorted back color is set correctly (Green). The issue arises when a user then selects a row. When the row is selected the sorted back color stays on top of the selected row style. So, if the selected row color was red the sorted columns cell would still show green. Looking at some of the demos for this control it appears that the sorted back color should actually be overwritten by the selected row style? In any case, I would like the selected row style to overwrite the SortedBackColor style.

I'm using asp.net 4.0, IE 9, VB.NET.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 16 Nov 2011, 10:24 AM
Hello,

.RadGrid .rgSorted
       {
           background-color: green !important;
       }
        
       .RadGrid .rgSelectedRow .rgSorted, .RadGrid .rgActiveRow .rgSorted, .RadGrid .rgHoveredRow .rgSorted, .RadGrid .rgEditRow .rgSorted
       {
           background-color: green !important;
       }
       .RadGrid .rgSelectedRow td
       {
           border-bottom-color: white !important;
       }
       .RadGrid .rgHoveredRow td
       {
           border-bottom-color: white !important;
       }



Thanks,
Jayesh Goyani
0
Hunter
Top achievements
Rank 1
answered on 16 Nov 2011, 05:03 PM
Perfect! Thank you so much! Makes total sense.
Tags
Grid
Asked by
Hunter
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Hunter
Top achievements
Rank 1
Share this question
or