Rank: Newbie Groups: Member
Joined: 9/2/2011 Posts: 5
|
Hello, notice below, I am setting an alternating item style so that the grid displays alternating colors for rows. My question, is can I use different selectedHoverStyle and selectedStyle colors for Alternating and non-alternating rows? I noticed, that if I don't explicitly set those two styles, alternating row was changing to a color of white when I clicked on it and it would not change to lightgray until I clicked on a different row. I am assuming it was picking up the color of non alternating rows (white) because I had not explicitly set a color for selectedhoverstyle and selectedstyle. Optimally, would I would like to do is leave the alternating rows light gray when they are selected and leave the non alternating rows white when selected but I am not sure how to to do this?
Thoughts/recommendations?
Thank you.
<eo:GridItemStyleSet> <CellStyle CssText="padding-left:8px;padding-top:2px; color:#black;"></CellStyle> <ItemStyle CssText="background-color: white"></ItemStyle> <AlternatingItemStyle CssText="background-color: lightgray" /> <AlternatingItemHoverStyle CssText="background-color: lightgray" /> <SelectedHoverStyle CssText="background-color: lightblue" /> <SelectedStyle CssText="background-color: lightblue" /> </eo:GridItemStyleSet>
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. You cannot do that. SelectedStyle overrides ItemStyle/AlternatingItemStyle. So once an item is selected, SelectedStyle/SelectedHoverStyle would completely take over.
Thanks
|