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

Loading aspx page in a div using ajax

1 Answer 129 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
shankar
Top achievements
Rank 1
shankar asked on 14 Feb 2014, 11:17 PM
I have the Telerik editor contained in an aspx page .
This aspx page is loaded dynamically into the div another aspx page using ajax call and setting the html in the div.
Due to this the editor control is showing as frozen, ( couldn't edit and no controls in tool panel works).
when I looked at viewSource of the html I can see that telerik scripts are missing.
if I directly query for container aspx page, the telerik editor is enabled and working fine.
any help is appreciated.
thanks.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 17 Feb 2014, 10:56 AM
Hello,

I have answered your support ticket on the matter and I am pasting my response here for anyone else that may have such an issue:

Our controls are IScriptControls and thus, they rely on the MS AJAX framework to add a $create() statement for them (you can see it at the end of the source of a page that works fine), which in turn initializes their client-side objects and functionality.

This requires a postback to happen, i.e., the full webform server lifecycle is needed, not just the HTML of the page in question, so it is not possible to add our controls to a page like this, I am afraid.

What I can suggest is either using partial postbacks in the context of the same page to add controls, like you would any regular ASP controls, or loading the external pages in a popup control like RadWindow so you can collect user input when needed. You can see here how to open RadWindow instances with JavaScript alone.




Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Documentation and Tutorials
Asked by
shankar
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or