or
<!DOCTYPE html>
<
html
>
<
head
>
<
meta
name
=
"viewport"
content
=
"width=device-width"
/>
<
title
>@ViewBag.Title</
title
>
<
link
href
=
"@Url.Content("
~/Styles/Site.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
link
href
=
"@Url.Content("
~/Styles/kendo.silver.min.css")"
rel
=
"stylesheet"
type
=
"text/css"
/>
<
script
src
=
"@Url.Content("
~/Scripts/jquery-1.9.1.min.js")"
type
=
"text/javascript"
></
script
>
<
script
src
=
"@Url.Content("
~/Scripts/kendo.web.min.js")"
type
=
"text/javascript"
></
script
>
</
head
>
<
body
>
<
div
>
@RenderBody()
</
div
>
<
script
src
=
"@Url.Content("
~/Scripts/Custom.js")"
type
=
"text/javascript"
></
script
>
</
body
>
</
html
>
$(document).ready(function () {
$(function () {
$("countriesAutoComplete").kendoAutoComplete();
});
});
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>
<
html
>
<
head
>
<
meta
name
=
"viewport"
content
=
"width=device-width"
/>
<
title
>Index</
title
>
</
head
>
<
body
>
<
div
>
<
p
>
Country: <
input
id
=
"countriesAutoComplete"
class
=
"k-input"
/>
</
p
>
</
div
>
<
script
type
=
"text/javascript"
src
=
"~/Scripts/Custom.js"
></
script
>
</
body
>
</
html
>
scheduler.resources.datasource.filter(filter);
@(Html.Kendo().Menu().Name("menu").BindTo(Model, mappings =>
{
mappings.For<
IDEA20.DO.Common.MenuItem
>(binding =>
{
binding.ItemDataBound((item, category) => //define mapping between menu item properties and the model properties
{
item.Text = category.Text;
}).Children(category => category.SubMenu);
});
})
)
public class MenuItem
{
public MenuItem()
{
SubMenu = new List<
MenuItem
>();
}
public string Text { get; set; }
public string Controller { get; set; }
public string Action { get; set; }
public bool Selected { get; set; }
public List<
MenuItem
> SubMenu { get; private set; }
}