EditorTemplate:
<
div
class
=
"k-widget"
>
@Html.HiddenFor(model => model.Id)
<
div
class
=
"edit-buttons"
>
<
a
class
=
"k-button k-button-icontext k-update-button"
href
=
"\\#"
><
span
class
=
"k-icon k-update"
></
span
></
a
>
<
a
class
=
"k-button k-button-icontext k-cancel-button"
href
=
"\\#"
><
span
class
=
"k-icon k-cancel"
></
span
></
a
>
</
div
>
<
dl
>
<
dt
>
@Html.LabelFor(model => model.SharedWith)
</
dt
>
<
dd
>
@(Html.Kendo().MultiSelectFor(model => model.SharedWith)
.DataValueField("Id")
.DataTextField("Name")
.Placeholder("Type user's name...")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("Users", "User");
});
})
.TagTemplate("<
div
class
=
""
tag-image""><
img
src
=
""
#: Picture #""
height
=
""
32"" /></
div
>")
.ItemTemplate("<
div
class
=
""
item-image""><
img
src
=
""
#: Picture #""
height
=
""
32"" /></
div
>"))
</
dd
>
</
dl
>
</
div
>