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.
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: ajax, comments, conditional, ie6, ie7, not working

2 Comments:
Basically once every six months I hit this problem again and again read my post.
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
Post a Comment
Subscribe to Post Comments [Atom]
<< Home