This question is locked. New answers and comments are not allowed.
I would like to use our custom CDN and specify something like the following
WebAssetDefaultSettings.ScriptFilesPath = "http://somedomain.com/scripts/"
on the server we would have
/scripts/2010.2.825/{all telerik js files}
is there any way to accomplish this? It gives an error when I try to set an
absolute path, saying it can only take a virtual.
Thanks,
JB7 Answers, 1 is accepted
0
Hello Jason Brozek,
Check this online help article (Content Delivery Network support section) devoted on the same matter.
Regards,
Georgi Krustev
the Telerik team
Check this online help article (Content Delivery Network support section) devoted on the same matter.
Regards,
Georgi Krustev
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
0
Jason
Top achievements
Rank 1
answered on 13 Sep 2010, 02:13 PM
Yes I have read that section, I can see that you can hard code a specific script. I'm wanting to do this for the telerik js files,
which it seems the ScriptRegistrar builds the list of needed js files based on the controls used in the page, I want
I want to define my own cdn, instead of using the telerik cdn.
Thanks,
JB
which it seems the ScriptRegistrar builds the list of needed js files based on the controls used in the page, I want
to put them on our custom cdn, and have it still dynamically pull only the scripts that are needed.
Just like how you would say
WebAssetDefaultSettings.UseTelerikContentDeliveryNetwork = true;
I want to define my own cdn, instead of using the telerik cdn.
Thanks,
JB
0
Hi Jason Brozek,
Thank you for the clarification.
Currently this feature is not supported. Nevertheless I will forward this request to our developers for further investigation and consideration.
Sincerely yours,
Georgi Krustev
the Telerik team
Thank you for the clarification.
Currently this feature is not supported. Nevertheless I will forward this request to our developers for further investigation and consideration.
Sincerely yours,
Georgi Krustev
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
0
Hello Jason,
For this to work, UseTelerikContentDeliveryNetwork should be set the to true, too.
Best wishes,
Alex Gyoshev
the Telerik team
The functionality is already implemented, using the ContentDeliveryNetworkUrl property. Just set the property of the DefaultGroup to your CDN and the automatic loading should start working as you expect it.
<%= Html.Telerik().ScriptRegistrar()
.DefaultGroup(defaultGroup => defaultGroup
.ContentDeliveryNetworkUrl("http://mylovelycdn.com/telerik-scripts/")
)
%>
For this to work, UseTelerikContentDeliveryNetwork should be set the to true, too.
Best wishes,
Alex Gyoshev
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
0
Redsquare
Top achievements
Rank 1
answered on 23 Sep 2010, 12:06 PM
Alex,
This does not work, it simply writes out a script tag pointing to the base ContentDeliveryNetworkUrl. it does not iterate the files in the group. Looking at the source code in (from Line 75 in WebAssetitemMerger) if a ContentDeliveryNetworkUrl is set it simply adds the url into the merged list without iterating the group. the else part of this statement does.
This does not work, it simply writes out a script tag pointing to the base ContentDeliveryNetworkUrl. it does not iterate the files in the group. Looking at the source code in (from Line 75 in WebAssetitemMerger) if a ContentDeliveryNetworkUrl is set it simply adds the url into the merged list without iterating the group. the else part of this statement does.
0
Hello again,
I was wrong. ContentDeliveryNetworkUrl sets a URL from which the group is loaded. You can, however, set the default CDN URL by editing the WebAssetDefaultSettings class.
I am sorry for misguiding you - and I hope this helps.
Best wishes,
Alex Gyoshev
the Telerik team
I was wrong. ContentDeliveryNetworkUrl sets a URL from which the group is loaded. You can, however, set the default CDN URL by editing the WebAssetDefaultSettings class.
I am sorry for misguiding you - and I hope this helps.
Best wishes,
Alex Gyoshev
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
0
nachid
Top achievements
Rank 1
answered on 24 Oct 2010, 12:08 PM
Can we have this possibility added to the next release
Me too, I am interested to put my static content in a different CDN
Ideally, can we have something like
Me too, I am interested to put my static content in a different CDN
Ideally, can we have something like
WebAssetDefaultSettings.ScriptContentDeliveryNetworkUrl =...WebAssetDefaultSettings.StyleContentDeliveryNetworkUrl =...WebAssetDefaultSettings.ContentDeliveryNetworkUrl = @"http://www.sharemeal.com/Assets/Scripts";
WebAssetDefaultSettings.StyleSheetFilesPath = @"~/Assets/Sheets";
WebAssetDefaultSettings.ContentDeliveryNetworkUrl = @"http://www.sharemeal.com/Assets/Scripts";
WebAssetDefaultSettings.StyleSheetFilesPath = @"~/Assets/Sheets";
WebAssetDefaultSettings.ContentDeliveryNetworkUrl = @"http://www.sharemeal.com/Assets/Scripts";
WebAssetDefaultSettings.StyleSheetFilesPath = @"~/Assets/Sheets";
WebAssetDefaultSettings.ScriptContentDeliveryNetworkUrl
WebAssetDefaultSettings.StyleContentDeliveryNetworkUrl