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

[Solved] Ajax Panel in content page not working

5 Answers 244 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Mark H
Top achievements
Rank 1
Mark H asked on 02 May 2009, 01:09 PM
I've got a master page with an AjaxManager and have put an AjaxManagerProxy in my content page. I have a RadAjaxPanel which has a cmd button on it. I've gone into the RadAjaxManagerProxy settings and configured the controls that trigger actions and are affected.

At runtime I get the error shown below. Also at design time I am seeing warnings on the telerik.web.ui.ajaxsetting lines saying "Validation (XHTML 1.0 Transitional) Element 'telerik.web.ui.ajaxsetting' is not supported" for all items in the AjaxSettings section. (Although I never trust this stuff because I get various design times quirks thanks to the well-known issues between VS2008 and RadAjax Q109.

Any ideas what I am doing wrong?

Parser Error Message:
Telerik.Web.UI.AjaxSettingsCollection must have items of type 'Telerik.Web.UI.AjaxSetting'. 'telerik.web.ui.ajaxsetting' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

Source Error:

Line 5:      <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
Line 6:          <AjaxSettings>
Line 7:              <telerik.web.ui.ajaxsetting ajaxcontrolid="RadAjaxPanel1"><updatedcontrols>
Line 8:  <telerik.web.ui.ajaxupdatedcontrol controlid="lstCurrency"></telerik.web.ui.ajaxupdatedcontrol>
Line 9:  <telerik.web.ui.ajaxupdatedcontrol controlid="txtAmount"></telerik.web.ui.ajaxupdatedcontrol>

5 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 May 2009, 10:46 AM
Hello Mark,

Unfortunately I could not reproduce the issue on the live site. Can you please ensure that the Register directive for the Telerik assembly is added at the top of the page in question?

Additionally, in order to find a quick solution/fix I will ask you to open a formal support ticket and send us a simple working test project with reproduced this erroneous behavior. Thus I could do all my best to help you further in resolving it.

Please note that we highly recommend avoid working with the RadAjaxManager & RadAjaxPanel controls at the same time. Use the controls depending on your exact scenario as recommended here.
More information is available in the link below:
Ajaxifying controls wrapped in RadAjaxPanel and added to AJAX Manager settings

Additionally, please review the following links:
Demo
Help topic

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mark H
Top achievements
Rank 1
answered on 04 May 2009, 03:05 PM
Thanks - I have made some progress but...

I took out the RadAjaxPanel and it made no difference (I realise I do not need it anyway)

I was able to put together a very simple project with a master page and a content page and got the same problem.

I have the telerik prefix tag registered in web.config rather than on the page.

The problem ONLY occurs if I specify the AjaxSettings by using the smart tag of the RadAjaxManagerProxy - if I add the ajaxified control and updated control(s) in code at runtime everything works fine - this is what I am doing for now as a workaround. I can't see anything wrong with the AjaxSettings that the smart tag creates but it does cause the error (and does indeed cause the design mode not to be able to create/render the control for the same reason).

Mark
0
Pavlina
Telerik team
answered on 07 May 2009, 01:57 PM
Hello Mark,

Could you provide additional details? Which version of visual studio are you using?
Additionally, verify that you are using the latest version of RadControls for ASP.NET.AJAX in your project.

If this is not the case I suggest that you send us your web site in a support ticket so we can troubleshoot it.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rastislav
Top achievements
Rank 1
answered on 19 Jun 2009, 12:24 PM
I have same problem ( VS 2008, Telerik.Web.UI 2009.1.527.35 )
My workaround:
I have two projects:
1) Portal Web
- RadAjaxManager in MasterPage with ContentPlaceHolder
- WebFormPage with PlaceHolder in ContentPlaceHolder
2) SubWeb ( UC_AjaxTelerik ) which is in virtual directory under Portal Web
- WebUserControl1 with RadAjaxManagerProxy [+ other telerik componets ( RadStrip, RadGrid etc) ]

Same exception is throwed on loading uc on WebFormPage in Portal Web with:
 WebUserControl1 uc = Page.LoadControl("~/UC_AjaxTelerik/WebUserControl1.ascx") as WebUserControl1;

This configuration is for simulating MOSS for loading diffrent web application in WebPart...


0
Pavlina
Telerik team
answered on 24 Jun 2009, 01:30 PM
Hello Rastislav,

Thank you for sharing your experience with the community.
Do not hesitate to write us again if any questions arise.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Mark H
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Mark H
Top achievements
Rank 1
Rastislav
Top achievements
Rank 1
Share this question
or