Change the font color of raggrid on rowselected

2 posts, 0 answers
  1. sho
    sho avatar
    24 posts
    Member since:
    Mar 2007

    Posted 29 Aug 2011 Link to this post

    Hi,

    My radgrid has skin = "Black" I want to change the font color of the item when a row is selected. How to do?

    Thanks,
    Aradhya
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Aug 2011 Link to this post

    Hello Aradhya,

    You can achieve this by setting CSS class for SelectedItemStyle as shown below.

    aspx:
    <telerik:RadGrid ID="RadGrid1"  Skin="Black" runat="server" DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true">
     <SelectedItemStyle CssClass="Selected"/>
      . . .
    </telerik:RadGrid>

    CSS:
    <style type="text/css">
     .Selected
     {
     color:Red !important;
     }
    </style>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top