This question is locked. New answers and comments are not allowed.
Hi,
I have another issue today :)
I have found that using http://jqueryui.com/demos/selectable/ with @(Html.Telerik().ScriptRegistrar()) doesn't work.
As soon as i remove the reference to the ScriptRegistrar, everything starts working.
Is there something that I am doing wrong?
The code above should work with my references to these libraries:
<script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/ui-lightness/jquery-ui-1.8.16.custom.css")" />
But as soon as the reference to @(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true))) is added, i get an "Error: Object doesn't support property or method 'selectable'" error....
Please help me :)
/Jaymie
I have another issue today :)
I have found that using http://jqueryui.com/demos/selectable/ with @(Html.Telerik().ScriptRegistrar()) doesn't work.
As soon as i remove the reference to the ScriptRegistrar, everything starts working.
Is there something that I am doing wrong?
@using (Html.BeginForm())
{
<
ul
id
=
"selectable"
>
@foreach (IProfile oProfile in Model)
{
<
li
class
=
"ui-widget-content"
>@oProfile.UserName</
li
>
}
</
ul
>
}
<
script
type
=
"text/javascript"
>
$(document).ready(function () {
$("ul#selectable").selectable();
});
</
script
>
The code above should work with my references to these libraries:
<script src="@Url.Content("~/Scripts/jquery-1.6.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/themes/ui-lightness/jquery-ui-1.8.16.custom.css")" />
But as soon as the reference to @(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true))) is added, i get an "Error: Object doesn't support property or method 'selectable'" error....
Please help me :)
/Jaymie