
none123456
Top achievements
Rank 1
none123456
asked on 04 Oct 2007, 02:39 PM
We are currently using RadAjax, and we would love to switch to the "Prometheus" version. However, the RadCodeBlock issue will probably keep us from moving forward at this time. I'd like to put a RadAjaxManager in our master page, but we have hundreds of pages with <%%> expressions in them, and surrounding all of them with RadCodeBlock is a daunting task.
Somehow, Microsoft's ASP.NET AJAX framework and UpdatePanel is able to work without a need for RadCodeBlock. It seems that there must be a way to make RadAjax "Prometheus" work without requiring RadCodeBlock.
Unfortunately, until this issue is addressed, we probably will be unable to switch to RadAjax "Prometheus." Please give serious consideration to finding another solution other than RadCodeBlock.
Somehow, Microsoft's ASP.NET AJAX framework and UpdatePanel is able to work without a need for RadCodeBlock. It seems that there must be a way to make RadAjax "Prometheus" work without requiring RadCodeBlock.
Unfortunately, until this issue is addressed, we probably will be unable to switch to RadAjax "Prometheus." Please give serious consideration to finding another solution other than RadCodeBlock.
6 Answers, 1 is accepted
0
Hello dmatson,
The RadCodeBlock is needed due to the fact that RadControls will register their skins in the header controls collection - the same problem will appear if you have code block in the header and set page Theme. Microsoft's ASP.NET AJAX framework and UpdatePanel does not deal with page head tag - cannot update any CSS.
Greetings,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
The RadCodeBlock is needed due to the fact that RadControls will register their skins in the header controls collection - the same problem will appear if you have code block in the header and set page Theme. Microsoft's ASP.NET AJAX framework and UpdatePanel does not deal with page head tag - cannot update any CSS.
Greetings,
Vlad
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

none123456
Top achievements
Rank 1
answered on 09 Oct 2007, 03:39 PM
I can understand the need for RadCodeBlock for anything inside the head tag. However, as I understand the documentation, RadCodeBlock is needed around code blocks anywhere in the page, including the body and form. Microsoft's ASP.NET AJAX does not have this limitation. Is there a way the implementation could be changed so that RadCodeBlock is required only for code inside the head tag?
David
David
0

Shane
Top achievements
Rank 1
answered on 11 Oct 2007, 12:10 AM
Hi David
You are correct. Using RadCodeBlock is not very elegant way, so I am using MS Update panel, and it works well.
Cheers
Shane
You are correct. Using RadCodeBlock is not very elegant way, so I am using MS Update panel, and it works well.
Cheers
Shane
0
Hello David, Shane,
I understand your concerns and issues with the RadCodeBlock control. Unfortunately there is not much we can do right now -- the page rendering interception mechanism in ASP.NET AJAX depends on the same interception mechanism that <%%> code blocks use and when we put the RadAjaxManager control in the mix, dynamically generating UpdatePanel controls under the hood, things get pretty complex.
For the time being this is a limitation of the technical implementation. We will continue to research ways to overcome it, but I cannot promise much more than that at the moment.
Greetings,
Hristo Deshev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I understand your concerns and issues with the RadCodeBlock control. Unfortunately there is not much we can do right now -- the page rendering interception mechanism in ASP.NET AJAX depends on the same interception mechanism that <%%> code blocks use and when we put the RadAjaxManager control in the mix, dynamically generating UpdatePanel controls under the hood, things get pretty complex.
For the time being this is a limitation of the technical implementation. We will continue to research ways to overcome it, but I cannot promise much more than that at the moment.
Greetings,
Hristo Deshev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Jeff
Top achievements
Rank 1
answered on 11 Nov 2010, 01:12 AM
I am seeing this same issue in the RadControls for ASP.NET AJAX Q2 2010 release.
Is there any solution to this other than wrapping any updated elements up in a RadCodeBlock?
Is there any solution to this other than wrapping any updated elements up in a RadCodeBlock?
0
Hello Jeff,
We have not discovered another solution than using RadCodeBlock to wrap your javascript logic which contains server-side code blocks.
Kind regards,
Sebastian
the Telerik team
We have not discovered another solution than using RadCodeBlock to wrap your javascript logic which contains server-side code blocks.
Kind regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items