Hello,
We have problems with the Multiselect: the initial values don’t bind the control on loading of the component.
RoutesSelected a list of type "DepotViewModel" defined in the datasource.
RouteGuids is a list of Guid type.
@(Html.Kendo().MultiSelect()
.Name("RouteGuids")
.DataTextField("Code")
.DataValueField("Id")
.Placeholder("Select route...")
.AutoBind(true)
.Filter("startswith")
.MaxSelectedItems(8)
.Value(Model.RoutesSelected)
.DataSource(source => source.Read(read => read.Action("GetDepots", "Request")).ServerFiltering(false)
)
)
Any idea?
Thanks,
Mathieu
We have problems with the Multiselect: the initial values don’t bind the control on loading of the component.
RoutesSelected a list of type "DepotViewModel" defined in the datasource.
RouteGuids is a list of Guid type.
@(Html.Kendo().MultiSelect()
.Name("RouteGuids")
.DataTextField("Code")
.DataValueField("Id")
.Placeholder("Select route...")
.AutoBind(true)
.Filter("startswith")
.MaxSelectedItems(8)
.Value(Model.RoutesSelected)
.DataSource(source => source.Read(read => read.Action("GetDepots", "Request")).ServerFiltering(false)
)
)
Any idea?
Thanks,
Mathieu