2

I have a project I'm working on and I'm using the Telerik MVC controls. I have the newest open source version.

In my _Layout.cshtml, I have the following line:

@(Html.Telerik().ScriptRegistrar().DefaultGroup(group =>
    group.Combined(false)
         .Compress(false))
    .jQuery(false)
    .jQueryValidation(false))

I want to load jQuery and jQueryValidation myself by using Cassette. The above line keeps jQuery from loading in favor of the location and version I've specified.

My problem is that when I bring up a page with a grid on it, the jquery.validation.min.js that exists in the telerik script directory still gets loaded as well as the one I have specified from a different directory.

Why is the ScriptRegistrar still loading jQueryValidation?

2 Answers 2

1

There was a bug which caused this erroneous behavior. Try downloading the latest internal build.

Sign up to request clarification or add additional context in comments.

2 Comments

I'm using the Open Source Version, so I don't suppose I can get the latest internal build, can I?
Nope. But you can always fix the problem in the source. Check ScriptRegistrar.cs
1

Another approach is to replace the jquery.validation.min.js that exists in the telerik script directory with an empty file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.