title: Supplying Kendo Autocomplete Data based on Kendo DropDownList Selection
body: <p>I have a Kendo Autocomplete control, which should populate its data based on a selected value of a parent Kendo-dropdownlist.</p>
  
  <p>I wonder how to go about doing this. I am using MVC 4 and a Razor view.</p>
  
  <p>I have tried to do it like this but this didn't work: </p>
  
  <pre><code>&lt;div class="editor-field"&gt;
      @Html.Kendo().DropDownListFor(x =&gt; x.CustomerId).Name("customerDropDownList").Events(e=&gt;e.Close("selectedItem")).Text(ViewBag.Customers[Model.CustomerId].TextValue).AutoBind(false).DataTextField("TextValue").DataValueField("Id").BindTo(ViewBag.Customers).HtmlAttributes(new { style = "width: 215px" })
  &lt;/div&gt;
  
  &lt;div class="editor-field"&gt;
      @Html.Kendo().AutoComplete().Name("customerOrders").Filter("startsWith").Placeholder("Customer Order Number.")
  &lt;/div&gt;
  
  
  &lt;script&gt;
      $('#customersDropDownList').kendoDropDownList({
         close : function selectItem (e) {
              var item = e.item;
              var text = item.text();
              // Use the selected item or its text
          }
      });
  &lt;/script&gt;
  </code></pre>