Loading aspx page in a div using ajax

2 posts, 0 answers
  1. shankar
    shankar avatar
    1 posts
    Member since:
    Feb 2014

    Posted 14 Feb 2014 Link to this post

    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.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 17 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top