Declined
Last Updated: 28 Nov 2018 11:34 by ADMIN
Ron
Created on: 22 Nov 2018 00:00
Category: Kendo UI for jQuery
Type: Bug Report
0
There is an error in the KendoMultiSelect. If you don't include an empty value:[]
<div class="filterField">
<label for="filterTags">Tags</label><br/>
<div class="filterFieldBody">
<input id="filterTags"/>
</div>
</div>

 

$( document ).ready( function ()
{

$( "#filterTags" ).kendoMultiSelect( {
placeholder: "Select Tag(s)",
autoClose: false,
dataTextField: "text",
dataValueField: "value",
autoBind: false,
dataSource: [
{ text: 'Summery Love Campaign', value: '1' },
{ text: 'Melbourne Cup', value: '2' },
{ text: '2018 Formals', value: '3' },
{ text: '2018 Schoolies Dance Club', value: '4' },
{ text: '2018 Schoolies Beach Fun', value: '5' },
{ text: 'Bridesmaids', value: '6' },
{ text: 'Wedding', value: '7' }
],
//value: [], without value set to an empty array kendo ui assumes value:[''] but with an array count of 0

// which causes all kinds of issues most especially when deleting
change: function ( e )
{
tagIds = this.value();
alert(JSON.stringify(tagIds));
}
} );


} );
1 comment
ADMIN
Dimitar
Posted on: 28 Nov 2018 11:34
Hi Ron,

Thank you for your feedback.
To function properly, MultiSelect widget should be initialized from a <select> element as specified in its documentation. When initialized from a select - Dojo snippet, the issue is not reproducible and the widget functions properly.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.