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

Trial version issues for RadControls for ASPNET AJAX Q1 2009

1 Answer 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 06 Mar 2009, 02:45 AM
To whom it may concern:

I have downloaded a trial version of RadControls for ASPNET AJAX Q1 2009 and come acoss of the following issues, just wantt o confirm whether it is related to the trial:

1. "Error: Sys.WebForms.PageRequestManagerParserErrorException: The

message received from the server could not be parsed. Common

causes for this error are when the response is modified by calls to

Response.Write(), response filters, HttpModules, or server trace is

enabled."

 

2. Cannot load a user control with embedded RadGrid in the content page:

"Control 'ctl00_ctl01_RadGridRolesPanel' of type 'OurUpdatePanel' must be placed inside a form tag with runat=server."

The code is as below:

 

UserControl ctrl = this.LoadControl("~/User Controls/Roles.ascx") as UserControl;

this.Page.Controls.Add(ctrl);

3. If I move the javascript from the master page to the .js file:

function InitiateAsyncRequestComboBox(sender, eventArgs) {

var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");

ajaxPanel.ajaxRequest("SelectedApplication:" + eventArgs.get_item().get_text());

}

function InitiateAsyncRequestPanelBar(sender, eventArgs) {

var ajaxPanel = $find("<%= RadAjaxPanel1.ClientID %>");

ajaxPanel.ajaxRequest("ClickedItem:" + eventArgs.get_item().get_text());

}

the above ajaxPanel returns null. However, leaving it into the site.master file is not debugable.

Cheers

William

 

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 Mar 2009, 01:05 PM
Hello William,

1. Would you please tell me if this message shows as frequently as Telerik trial message.
Also when you set AjaxEnabled property to "false" if you receive a server error. 

2. The dynamic loading of user controls follows the same logic as in normal postback application. You can load custom user controls via AJAX.
Please note that you have to instantiate your user control in Page_Init or Page_Load and always recreate the last loaded User Control.

More information about load user controls is available in the following links:
Help topic
Demo

3. Note that server tags can not be evaluated properly if they are in a JS file. This code should not be in aspx page.

I hope this helps.

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
General Discussions
Asked by
William
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or