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

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

1 Answer 15 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rangnath
Top achievements
Rank 1
Rangnath asked on 29 Jan 2014, 01:59 PM
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.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 30 Jan 2014, 09:26 AM
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.
Tags
General Discussions
Asked by
Rangnath
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or