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

skin/css lost after ajax update

4 Answers 181 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Art
Top achievements
Rank 1
Art asked on 27 Jun 2008, 06:10 PM
I have a main page that is dynamically loading my user control.  The user control is comprised of only Telerik controls.  When the page loads my user control the first time, everything has the correct skin.  Then I click on one of the Telerik controls (e.g., a RadToolbar or RadTabStrip).  When the ajax call returns, the skins rendering on all of the Telerik controls are gone. 

When I compare the before and after HTML returned from the server side, the only difference is the Telerik css link is missing.  E,g,

   <link title='Telerik stylesheet' type='text/css' rel='stylesheet' 
            href='/MyApp/WebResource.axd?d=uJwQdCvUSF
           oaKrPlZUKnF7vKBc4bpis_hMnEMcq4COvgKUytoTBF6
           JxKtFi2B2dES9bW3rVsuCiW5TsPr1_fA
           2&amp;t=633463791520000000'></link>

When I check the href in the browser I can download the CSS file.

When I switch off ajax in my RadAjaxManager, it renders fine every time.

I'm using Telerik.Web.UI.dll version 2008.1.515.20 and ASP.NET 2.0.

So it appears that the server side decided not to inject the <link> for the skins.  What can make this happen? 

4 Answers, 1 is accepted

Sort by
0
Art
Top achievements
Rank 1
answered on 27 Jun 2008, 10:29 PM
OK, well it appears that the work around is to set EnableAjaxSkinRendering=true in the code behind's Page_Load for each control that is having lost skin/css on an ajax callback.  It doesn't work if it is set as a control attribute in the ASCX file.
0
Golem
Top achievements
Rank 1
answered on 30 Jul 2008, 03:46 PM
Thanks for the workaround, Art.  I was scratching my head over the very same problem.
0
Nataraj
Top achievements
Rank 1
answered on 04 Aug 2008, 02:11 PM
Hi,

I am also facing the same issue. In one the reply it is stated that "It doesn't work if it is set as a control attribute in the ASCX file.". what does control attribute mean?

How did the issue resolve. Please reply me the resolution steps.

thanks,
nataraj




0
Nataraj
Top achievements
Rank 1
answered on 04 Aug 2008, 02:24 PM
Hi,

I am able to solve it.
thanks for the workaround.

regards,
nataraj
Tags
Ajax
Asked by
Art
Top achievements
Rank 1
Answers by
Art
Top achievements
Rank 1
Golem
Top achievements
Rank 1
Nataraj
Top achievements
Rank 1
Share this question
or