Webservice renders a control and returns it in string.
Using js when I paste it on the page, the javascript functions are not
evaluated. How can I do that?
In Telerik XmlHttpPanel there is a
EnableClientScriptEvaluation. How to do it without using this control?
On the page I have several
updatepanels. Depending on what I click in the menu, the proper
updatepanel is filled with ascx control.
Now in one of this ascx
control I need to have the posibility to change dynamically controls in
one fieldset when I press the button.
If I place there another
update panel, when I try to update him, the parent update panel fires
to.
So now I have webservice which returns the content and paste
it in the proper place on the place. Please tell me, with the code
example if it is possible, how to evaluate the javascript in this
situation?
0
Accepted
Pero
Telerik team
answered on 30 Apr 2010, 11:02 AM
Hello Ćukasz,
I believe the client-side method you are looking for is $telerik.evalScripts(parentElement);. This method evaluates all the client scripts present in the parentElement. If you do not have any RadControls present on the page, the $telerik static library can be referenced in the <ScriptManager/> as shown in the following sample:
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.