This question is locked. New answers and comments are not allowed.
I decided to configure my assets using web.config.
So I made a group and called it cdn as the following:
And I rendered this group on the page:
And the result was in correct URLs:
So I made a group and called it cdn as the following:
<webAssets useTelerikContentDeliveryNetwork="true"><scripts><add name="cdn" combined="false" compress="false" ><items><add source="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.4.min.js"/><add source="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js"/></items></add></scripts></webAssets>And I rendered this group on the page:
htmlHelper.Telerik().ScriptRegistrar().jQuery(false).jQueryValidation(false).Scripts(s => s.AddSharedGroup("cdn")).Render()And the result was in correct URLs:
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jquery.ui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
<script type="text/javascript" src="/WebApp/Scripts/http:/ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js"></script>
Is there anyway to get this work correctly?