My Issue is that once I had upgraded to version 2017.3.913, pre-populating the multiselect did not work.
The Ajax does return data, and throws no error when setting the value.
I have also tried a default random value to see if I could get a dummy pre selected value and nothing.
Is there another way to set value with text and id into the multiselect field.
Thank You.
Example of code below.
<
table
style
=
"width:100%; margin:0px; padding:0px;"
>
<
tr
>
<
td
style
=
"margin:0px; padding:0px;position:relative;"
>
@(Html.Kendo().MultiSelect().Name("VesselMultiDropDown")
.DataTextField("Text").DataValueField("Value")
.Filter("contains")
.IgnoreCase(true)
.DataSource(source =>
{
source.Read(read =>
{
read.Action("JsonGetJobVisitExporWithBarcodeStatusOnlytMultiDropDown", "DropDown").Data("getEnvironment");
})
.ServerFiltering(true);
})
.AutoClose(false)
.AutoBind(false)
.HtmlAttributes(new { style = "width:100%-22px;margin-right:22px;" })
.Placeholder("Select vessel...")
)
</
td
>
</
tr
>
</
table
>
jQuery(window).load(function () {
$.ajax({
url: "@Url.Action("GetSessionVessels", "Barcode")",
type: 'POST',
traditional: true,
success: function (dataVessels) {
$("#VesselMultiDropDown").data("kendoMultiSelect").value(dataVessels);
}
});
});