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

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

2 Answers 59 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 20 Jul 2012, 05:56 PM

Hi,

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.

Thanks,
Tim

2 Answers, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 23 Jul 2012, 10:10 AM
The problem is obviously caused by asp.net 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.

Regards
Tim
0
Vasil
Telerik team
answered on 24 Jul 2012, 01:44 PM
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,
Vasil
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.
Tags
TreeList
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or