I have an object:
And in the editor template, where model.Members are a collection of Users
When posting the form containing this multiselect I get the following post data
Now as far as I can tell the post data is correct, except for"Members:[object Object]" which Kendo throws an error for. When the model is received by the controller, the Members field is null.
What settings are incorrect?
(Note that MemberRead is populating the MultiSelect correctly)
(Also note that this form is part of a popup editor of a grid, in which everything else is working correctly)
public
class
User
{
public
int
Id {
get
;
set
; }
public
string
Name {
get
;
set
; }
}
@(Html.Kendo().MultiSelectFor(model => model.Members)
.DataValueField(
"Id"
)
.DataTextField(
"Name"
)
.Placeholder(
"Type user's name..."
)
.DataSource(source =>
{
source.Read(read =>
{
read.Action(
"MemberRead"
,
"Group"
);
});
})
)Id:0
Name:Test
Description:Test
Members.Id:1
Members.Name:Jan
Members:[object Object]
What settings are incorrect?
(Note that MemberRead is populating the MultiSelect correctly)
(Also note that this form is part of a popup editor of a grid, in which everything else is working correctly)