New to Kendo UI for jQuery? Download free 30-day trial

Search for Items by Dragging to Input

The following example demonstrates how to make a read-only text visible in the input field of a Kendo UI ComboBox widget.

To see how the example works:

  • Select Chai from the Drag: Chai field.
  • Drag it to the input field of the ComboBox.
  • Release the mouse.
  <div id="example">
    <div class="demo-section k-header">
      <div> Drag: Chai </div>
      <input id="products" style="width: 400px" />
      $(document).ready(function() {
          placeholder: "Select product",
          dataTextField: "ProductName",
          dataValueField: "ProductID",
          filter: "contains",
          autoBind: false,
          minLength: 3,
          dataSource: {
            type: "odata",
            serverFiltering: true,
            transport: {
              read: {
                url: "",

        //Wire the drop event
        var combobox = $("#products").data("kendoComboBox");

        combobox.input.on("drop", function(e) {
          var input = e.currentTarget;
          var droppedText = e.originalEvent.dataTransfer.getData("text");

          setTimeout(function() {
            input.value = droppedText;

    <style scoped>
      .demo-section {
        width: 400px;

See Also

For more runnable examples on the Kendo UI ComboBox, check its how-to articles.

In this article
Not finding the help you need? Improve this article