Hi,
In my User Control I got a ScriptManagerProxy with a ScriptReference property in which I load a Javascript file.
In my User Control I got a ScriptManagerProxy with a ScriptReference property in which I load a Javascript file.
<asp:ScriptManagerProxy ID="smp" runat="server"> |
<Scripts> |
<asp:ScriptReference Path="~/Scripts/myScript.js" /> |
</Scripts> |
</asp:ScriptManagerProxy> |
This Javascript file contains this function:
function onNodeClicked(sender, args) { |
... |
} |
Finally, in my User Control, I have a RadTreeView:
<telerik:RadTreeView ID="myTree" runat="server OnClientNodeClicked="onNodeClicked"> |
... |
</telerik:RadTreeView> |
This control is loaded dynamically in a aspx page. When I execute this, I receive this message:
Microsoft JScript runtime error: 'onNodeClicked' is undefined
What's wrong ?