class="rtlExpanded" missing, class="button" instead?!

3 posts, 0 answers
  1. Tim
    Tim avatar
    7 posts
    Member since:
    Jul 2012

    Posted 20 Jul 2012 Link to this post


    I derived from RadTreeList and in my dev environment everything works fine. In production however, the buttons that expand/collapse a node have the wrong css class assigned. In dev the RadTreeList base control correctly assigns the "rtlExpand" or "rtlCollapse" class, so the button renders with class="rtlExpand" / "rtlCollapse". In prod, it always only renders class="button".

    To make sure that nothing intercepts the rendering, I debugged the OnPreRender method of the control and checked the attributes of the controls. The css classes are already assigned right there. I am not messing with the node css class in the derived control, so I have absolutely no idea where class="button" is coming from.

    The Telerik dll versions are equal in both environments. The main difference between the dev and prod environments is that the page that hosts the tree is not derived from System.Web.UI.Page, but from a custom page class which does all kinds of stuff that I don't know about. However, in both environments the control tree above the RadTreeList is the same. So that page class must somehow interfere with the Telerik control. When I just make System.Web.UI.Page the base class in the prod environment, then the control renders fine.

    I just don't know what the page class could do to alter the rendering of the RadTreeList and I am thankful for any hint.


  2. Tim
    Tim avatar
    7 posts
    Member since:
    Jul 2012

    Posted 23 Jul 2012 Link to this post

    The problem is obviously caused by theming, this line is in the .skin file:
    <asp:Button runat="server" CssClass="button" />

    Strange however: commenting out this line did not solve the problem. But setting EnableTheming="false" for the control did.

  3. DevCraft R3 2016 release webinar banner
  4. Vasil
    Vasil avatar
    1541 posts

    Posted 24 Jul 2012 Link to this post

    Hello Tim,

    Chances made to the .skin file in the production server may not cause recompilation of the project, so they will be ignored till something else cause recompilation (like changing the aspx markup)

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top