javascript - Kendo UI Autocomplete Select all

I have this Kendo UI autocomplete text field and I want to implement a select all/remove all option.

The requirements are when the user click on select all should update the control with all values no mater what is selected before.

So far I have:

    .Events(e =>

 <a href="#" id="all">select all</a>
 <a href="#" id="clear">clear</a>

I would like to use a javascript/jquery

1 Answer

  1. Laurent- Reply


    Try this:

            $(document).ready(function() {
              // create MultiSelect from select HTML element
              var required = $("#multiselectId").kendoMultiSelect().data("kendoMultiSelect");
              $("#all").click(function() {
                var values = $.map(, function(dataItem) {
                  return dataItem.value;
              $("#clear").click(function() {


Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>