Latest CSS changes caused the mess

3 posts, 0 answers
  1. Alexander
    Alexander avatar
    152 posts
    Member since:
    Jun 2012

    Posted 26 Jul 2011 Link to this post


    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. Pavlina
    Pavlina avatar
    6166 posts

    Posted 01 Aug 2011 Link to this post

    Hello Alexander,

    I suggest that you examine the forum thread below, which elaborates on this matter and see if it works for you:

    Kind regards,
    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.

  3. Alexander
    Alexander avatar
    152 posts
    Member since:
    Jun 2012

    Posted 15 Aug 2011 Link to this post

    Thanks, but I guess I will have to redefine some styles instead. Add !important in some cases, etc...
Back to Top