Vinoth Arun
Top achievements
Rank 2
Vinoth Arun
asked on 01 Feb 2012, 03:10 PM
Hi Friends,
Belated wishes Happy New 2012.
In my project, I'm using RadTreeview. Earlier i have client side(Java Script) code within page itself. It works fine. But Now i move all codes to separate Java Script File it won't find Tree View. Please give me solution for this. Because of Security Reason I move to separate file.
Thanks
-- Vinoth
Belated wishes Happy New 2012.
In my project, I'm using RadTreeview. Earlier i have client side(Java Script) code within page itself. It works fine. But Now i move all codes to separate Java Script File it won't find Tree View. Please give me solution for this. Because of Security Reason I move to separate file.
Thanks
-- Vinoth
4 Answers, 1 is accepted
0
RvdGrint
Top achievements
Rank 1
answered on 01 Feb 2012, 08:51 PM
Use RadScriptManager to register your javascript files.
This will solve the problem.
Regards,
Jos.
This will solve the problem.
Regards,
Jos.
0
Shinu
Top achievements
Rank 2
answered on 02 Feb 2012, 05:16 AM
Hello Vinoth,
Try referring the script in ScriptManager as shown below.
aspx:
-Shinu.
Try referring the script in ScriptManager as shown below.
aspx:
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Path
=
"~/scripts/MyScript.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
-Shinu.
0
Vinoth Arun
Top achievements
Rank 2
answered on 02 Feb 2012, 12:52 PM
Hi Shinu,
It is not working, now it self it says treeview was null.
thanks,
It is not working, now it self it says treeview was null.
<
telerik:RadScriptManager
ID
=
"RadScriptManager2"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Path
=
"~/CourseBuilder/js/CourseBuilderJavaScript.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
thanks,
0
Hello Vinoth,
You can refer to the attached file for an example how you can use an external javascript file.
Kind regards,
Kate
the Telerik team
You can refer to the attached file for an example how you can use an external javascript file.
Kind regards,
Kate
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>