RadEditor in ViewUserControl causes javascript/jquery used by view to fail

2 posts, 0 answers
  1. Rangnath
    Rangnath avatar
    1 posts
    Member since:
    Jan 2014

    Posted 29 Jan 2014 Link to this post

    I have an ASP.Net AJAX RadEditor control in a ViewUserControl. When I do Html.RenderPartial("~/RadEditor/RadEditor.ascx") on a view, all other functionality on the page that uses javascript or jquery fails.
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    4627 posts

    Posted 30 Jan 2014 Link to this post

    Hello Rangnath,

    Our controls are IScriptControls based on MS AJAX and thus, the framework must have their $create() statements in order to instantiate their client-side objects and functionality. This cannot happen when only the simple HTML is rendered for the user control. Thus, when this initialization has not taken place, there will be JavaScript errors thrown.
    Moreover, they are created around the webforms paradigm and they are not supported in MVC and especially Razor.

    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.
Back to Top