I have a problem configuring the MultiSelect using the taghelpers, while the htmlhelpers give me no problem at all.
I get no data in the multiselect when using the taghelper, while the htmlhelper does.
Any ideas ?
Example:
HtmlHelper:
@(Html.Kendo().MultiSelect()
.Name(
"roleSelect"
)
.DataTextField(
"roleName"
)
.DataValueField(
"id"
)
.DataSource(source =>
{
source.Read(read =>
{
read.Action(
"GetAvailableRoles"
,
"Users"
);
});
})
)
Taghelper:
<
kendo-multiselect
name
=
"roleSelect2"
datavaluefield
=
"id"
datatextfield
=
"roleName"
>
<
datasource
type
=
"DataSourceTagHelperType.Ajax"
>
<
transport
>
<
read
url
=
"@Url.Action("
GetAvailableRoles", "Users")" />
</
transport
>
</
datasource
>
</
kendo-multiselect
>