I have a RadGrid to which I've applied alternating row colors via CssClass attributes as recommended here:
That works fine to style the rows using my zebra colors. Now, I've added to the grid:
Now, when I click on a column header, the cells in the column by which I've sorted the data are not styled using my ItemStyle and AlternatingItemStyle CSS classes. All of the <td/>s in the sorted column have class="rgSorted", yet they're zebra striped in the default grid alternating colours. What gives?
(Rhetorical aside: Why don't ItemStyle-BackColor, AlternatingItemStyle-BackColor and SelectedItemStyle-BackColor just work the way they should? Why is the recommended solution that we should use CSS to bypass your grid's own properties? Shouldn't the recommended solution be to make the grid's published properties work with each other? If we have to do it in CSS, your developers definitely can.)
So, about that screenshot, why is the sorted column ignoring my CSS row styles and reverting to the defaults?
Thank you,
~Jeff
<
ItemStyle
CssClass
=
"GridItemStyle"
/>
<
AlternatingItemStyle
CssClass
=
"GridAltItemStyle"
/>
<
SelectedItemStyle
CssClass
=
"GridSelItemStyle"
/>
That works fine to style the rows using my zebra colors. Now, I've added to the grid:
<
MasterTableView
AllowSorting
=
"true"
/>
Now, when I click on a column header, the cells in the column by which I've sorted the data are not styled using my ItemStyle and AlternatingItemStyle CSS classes. All of the <td/>s in the sorted column have class="rgSorted", yet they're zebra striped in the default grid alternating colours. What gives?
(Rhetorical aside: Why don't ItemStyle-BackColor, AlternatingItemStyle-BackColor and SelectedItemStyle-BackColor just work the way they should? Why is the recommended solution that we should use CSS to bypass your grid's own properties? Shouldn't the recommended solution be to make the grid's published properties work with each other? If we have to do it in CSS, your developers definitely can.)
So, about that screenshot, why is the sorted column ignoring my CSS row styles and reverting to the defaults?
Thank you,
~Jeff