Wednesday, May 16, 2007

Conditional comments and r.a.d ajax

We use the Telerik r.a.d. controls here, and I encountered a problem that was causing alot of problems.

On a button click using ajax, I'd get crazy moving of several screen elements.

If turns out since I was using conditional comments and they were being lost on the callback.

So I had the following in the header (which by the way is how you can conditionally have different stylesheets for IE):

<!--[if lte IE 7]><link rel="stylesheet" href="ie7.css" type="text/css" charset="utf-8" /><![endif]-->
<!--[if lte IE 6]><link rel="stylesheet" href="ie6.css" type="text/css" charset="utf-8" /><![endif]--> Anyway setting EnablePageHeadUpdate="false" in the RadAjaxPanel fixes the problem.

Labels: , , , , ,

2 Comments:

Anonymous Jiro said...

Basically once every six months I hit this problem again and again read my post.

11:44 AM  
Blogger le_sloth said...

fantastic!!

This has been bugging me for months and had just typed up a long support request to Telerik when I discovered your post.

Thanks :D

11:23 AM  

Post a Comment

Subscribe to Post Comments [Atom]

<< Home