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

[Solved] Ajax rendered Telerik controls doesnt function.

1 Answer 17 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 1
Tony asked on 01 Nov 2010, 08:33 PM
I'm rendering a partial view containing a form with Telerik Editor through Ajax. The Ajax controls renders but doesnt perform any expected functionality.

Looks like the javascripts are not recogonized and I thought of eval the scripts after rendering, but as the scripts are registered through <%= Html.Telerik().ScriptRegistrar().jQuery(false%>” , i'm not sure how to identify the scripts and evalutate it.

Is there any suggested way to make Telerik controls work on MVC Ajax rendered Partial views?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Nov 2010, 07:20 AM
Hello Tony,

This help topic shows what the required steps are. In a word all required JavaScript files need to be manually registered in the view which loads the partial view. In the editor case you need something like this:

<%= Html.Telerik().ScriptRegistrar().jQuery(false).DefaultGroup(g =>
    g.Add("telerik.common.js")
     .Add("telerik.list.js")
     .Add("telerik.combobox.js")
     .Add("telerik.draganddrop.js")
     .Add("telerik.window.js")
     .Add("telerik.editor.js"))
%>


Regards,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Tony
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or