I am developing pages using ASP.NET MVC 3 using VS 2010, SQL 2008.
I am using Telerik Web MVC version 2011.1.315 which is using jQuery 1.5.1
I need to use jQuery 1.6 for my other pages.
My Scripts folder contains a folder for Telerik scripts (2011.1.315) and other scripts which includes the later version jQuery 1.6.1
In the layout, I have
<!DOCTYPE html>
<
html
>
<
head
>
<
link
href
=
"@Url.Content("
~/Content/Site.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Content/themes/base/jquery-ui.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Content/themes/ui-lightness/jquery-ui-1.8.11.custom.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Content/jquery.multiselect.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Scripts/jwysiwyg/jquery.wysiwyg.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"@Url.Content("
~/Scripts/jquery-1.6.1.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/jQuery-ui.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/jquery.validate.min.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/jquery.validate.unobtrusive.min.js")"
type
=
"text/javascript"
></
script
>
@RenderSection("JavaScript", false)
@Html.Telerik().StyleSheetRegistrar().DefaultGroup(g => g.Add("telerik.common.css").Add("telerik.windows7.css"))
</
head
>
<
body
>
yada yada yada...
@Html.Telerik().ScriptRegistrar().jQuery(false); -- This is the last line
</
body
>
</
html
>
I am trying to implement the inline editing of the Telerik grid. If the user click Edit then Cancel, it works. If the user click Edit and Update, it works. After this edit, if the user clicks Edit second time and then hit Cancel, I got "Error on page".
This is what I found when debug:
function anonymous(data) {
var p=[];with(data){p.push('<
a
href
=
"/Organization/Business/Edit?BusinessId=',BusinessId,'"
>',ExternalId,'</
a
>');}return p.join('');
}
Call Stacks:
telerik.grid.editing.min.js
jquery-1.6.1.js
telerik.grid.editing.min.js
telerik.common.min.js
jquery-1.6.1.js
Why Telerik grid calls jQuery 1.6?
If I remove the reference
<script src="@Url.Content("~/Scripts/jquery-1.6.1.js")" type="text/javascript"></script >
from the top, then the Editing/Cancel works. However this will break my other pages.
How should I fix this issue? Please help.