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

Latest CSS changes caused the mess

2 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 26 Jul 2011, 04:52 PM
Hi,

you've made some changes in CSS during last versions of Telerik components.

Please, take a look at following style I had in my grid (ca stands for horizontal center alignment)
<telerik:GridBoundColumn HeaderStyle-CssClass='GridHeaderGreen ca' ItemStyle-CssClass='ca' DataField="Description" HeaderText="Description" SortExpression="WIZARD.FORM.DESCRIPTION"/>

and now - how it looks in markup:
<th class="GridHeaderGreen ca rgHeader" scope="col"><a href="javascript:__doPostBack('ctl00$cphMain$wizardClientFormView$rgClientFormView$ctl00$ctl02$ctl02$ctl01','')" title="Click here to sort">Description</a></th>
- my alignment is ignored!

As you can see, you now add your classes after all user-defined classes. As a result, all user-class css properties, that exist in your classes, too, are overridden - alignment, text weight, etc.! What for do you do this?

How to solve this problem? I have tons of controls with such markup!

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Aug 2011, 11:27 AM
Hello Alexander,

I suggest that you examine the forum thread below, which elaborates on this matter and see if it works for you:
http://www.telerik.com/community/forums/aspnet-ajax/grid/itemstyle-cssclass-need-to-make-one-link-red.aspx

Kind regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Alexander
Top achievements
Rank 1
answered on 15 Aug 2011, 06:07 PM
Thanks, but I guess I will have to redefine some styles instead. Add !important in some cases, etc...
Tags
Grid
Asked by
Alexander
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or