I have a MultiSelect bound via Ajax to a server controller. The MultiSelect properly shows the server data
and provides filter criteria from the keyboard. But when the control is initialized, if I provide values to it they are not visible until after I click inside the Multiselect control. If I provide a value for the Placeholder text, only the first tow characters of it are displayed until I click on the control. After selecting the control, the initial values are displayed and it all works as expected. The control is defined with an Mvc helper, the ViewBag.TagArray in the snippet below is a string array with the values that should be displayed as already selected.
thanks in advance for any help
and provides filter criteria from the keyboard. But when the control is initialized, if I provide values to it they are not visible until after I click inside the Multiselect control. If I provide a value for the Placeholder text, only the first tow characters of it are displayed until I click on the control. After selecting the control, the initial values are displayed and it all works as expected. The control is defined with an Mvc helper, the ViewBag.TagArray in the snippet below is a string array with the values that should be displayed as already selected.
thanks in advance for any help
@(Html.Kendo().MultiSelect()
.Name("ajaxTags")
.Placeholder("Select tags...")
.AutoBind(false)
.DataTextField("Subject")
.DataValueField("Name")
.Filter("contains")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("AjaxGetTags", "Tag");
});
source.ServerFiltering(true);
source.Events(events => events.Error("kendoOnError"));
})
.HtmlAttributes(new { style = "width: 99%;" })
.Value(ViewBag.TagArray)
)