So we recently updated our version of kendo to 2015.2.805.
The error ("Uncaught TypeError: Cannot read property 'value' of undefined") is caused by line 3 of the following JavaScript ("multiselect" on line 1 is undefined):
1.var multiselect = $("#Statuses").data("kendoMultiSelect");2.var selectedData = [];3.var items = multiselect.value();
Initialization code:
1.<label>Statuses</label>2.@(Html.Kendo().MultiSelect()3. .Name("Statuses")4. .Placeholder("Select statuses...")5. .BindTo(Model.AllStates)6. .ItemTemplate("<span class=\"workflow-state #:getStateClass(data.Value)#\">#:data.Text#</span>")7. .TagTemplate("<span class=\"workflow-state #:getStateClass(data.Value)#\">#:data.Text#</span>")8. .Value(Model.SelectedStatuses))When testing this code on a previous version of the application, the feature works. However, since that version we have updated kendo, as well as the references to kendo (in _Layout.cshtml).
Could this maybe be a reference issue?
Regardless of whether we add or remove kendo.web.min.js, the problem persists.
We are referencing the following files, all of these files return an OK result:
1./kendo/2015.2.805/kendo.all.min.js2./kendo/2015.2.805/kendo.aspnetmvc.min.js3./kendo/2015.2.805/cultures/kendo.culture.en-GB.min.js4./kendo/2015.2.805/kendo.web.min.js