Loading JQueryUI
Hi
I had a look to the list of script references in sitefinity settings. I want to use one of them in my custom control. The script reference is "JQueryUI", I want to load it on the custom control. Please let me know how it i can do that?
Hi Amir,
Telerik.Sitefinity.Resources.Scripts.jquery-ui-1.8.8.custom.min.js or take a look at this forum thread where you will find code for control using jQueryUI.
Please write back if you need further help.
Best wishes,
Stanislav Velikov
the Telerik team
Hi Telerik, Amir...
I think I am looking to do the same thing as Amir here... using the ResourceLinks/ResourceFile we can load JQuery:
<
sf:ResourceLinks
id
=
"resourcesLinks"
runat
=
"server"
>
<
sf:ResourceFile
JavaScriptLibrary
=
"JQuery"
/>
</
sf:ResourceLinks
>
<
sf:ResourceLinks
id
=
"resourcesLinks"
runat
=
"server"
>
<
sf:ResourceFile
JavaScriptLibrary
=
"JQuery"
/>
<
sf:ResourceFile
JavaScriptLibrary
=
"JQueryUI"
/>
</
sf:ResourceLinks
>
Cannot create an object of type 'Telerik.Sitefinity.Web.UI.JavaScriptLibrary' from its string representation 'JQueryUI' for the 'JavaScriptLibrary' property.
<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
<
sf:ResourceLinks
id
=
"resourcesLinks"
runat
=
"server"
>
<
sf:ResourceFile
name
=
"Telerik.Sitefinity.Resources.Scripts.jquery-1.5.2.min.js"
/>
<
sf:resourcefile
name
=
"Telerik.Sitefinity.Resources.Scripts.jquery-ui-1.8.8.custom.min.js"
/>
</
sf:ResourceLinks
>
Hi Matthew,
The approach
<
sf:ResourceFile
JavaScriptLibrary
=
"JQueryUI"
/>
Is this still valid with 4.2? After upgrading to 4.2, my jQuery is broken. Do I need to reference a newer version of JQuery UI?
Hi Brad,
Refer to this blog post for relevant information on adding jQuery.
Regards,
Stanislav Velikov
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>