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

ASP button link CSS inside RadGrid

2 Answers 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Daren
Top achievements
Rank 1
Daren asked on 29 Sep 2010, 09:57 AM
i have an asp button inside radgrid with an specific css.

<asp:LinkButton ID="lnkThreadTitle" CommandName="Select" runat="server" CssClass="blog_posttitle"></asp:LinkButton>

Problem is the link button inherits the rad grid "a" link css definition and wont inherit its specific css class "blog_posttitle"

Also tried to input it in the code behind lnkThreadTitle.CssClass = "blog_posttitle";

Still inherits the grid link css below

.RadGrid_Windows7 .rgRow a {
  color:#1e3287;
}


Note: goal of this is make the .blog_posttitle skinnable by anyone.

help please. how do i make the asp linkbutton inherit my specific class and not the one from radgrid.

thanks much in advance.




2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 29 Sep 2010, 10:25 AM
Hello Daren,

You can use

.yourCssClass
{
       color: red  !important ;

}

or

.RadGrid  .rgMasterTable  .yourCssClass
{
      color: red ;
}


http://blogs.telerik.com/dimodimov/posts/08-06-17/how_to_override_styles_in_a_radcontrol_for_asp_net_ajax_embedded_skin.aspx


Sincerely yours,
Dimo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Daren
Top achievements
Rank 1
answered on 29 Sep 2010, 10:32 AM
man, why didn't i think of that. thats plain simple and wickeddd!

thanks Dimo, if we were in prison, ill protect you in the shower.



Tags
Grid
Asked by
Daren
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Daren
Top achievements
Rank 1
Share this question
or