title: Kendo UI MVC Send MultiSelect data values to Action method
body: <p>The Kendo UI Ajax Binding documentation at <a href="http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/grid/ajax-binding#pass-additional-data-to-action-method" rel="noreferrer">Ajax Binding</a> describes passing multiple data parameters to an Action method but it does not address passing arrays like MultiSelect values.  </p>
  
  <p>In the example below, if multisel is set to a string like "237896", the controller receives sitesFilter="237896". But if multisel is set to the MultiSelect value as shown below, the controller receives sitesFilter = null. </p>
  
  <p>What is the proper way to send all of the MultiSelect values to the Action method using the MVC wrapper?</p>
  
  <pre><code>    .DataSource(dataSource =&gt; dataSource
                                .Ajax()
                                .ServerOperation(false)
                                .Read(read =&gt; read.Action("Documents_Read", "Document")
                                                  .Type(HttpVerbs.Post)
                                                  .Data("getCriteria"))
  
      function getCriteria() {
      var multisel = $("#sites").data("kendoMultiSelect").value();
      return {
          sitesFilter: multisel
      };
  }
  
      public ActionResult Documents_Read([DataSourceRequest] DataSourceRequest request, string sitesFilter=null)
      {
          return Json(GetDocuments(sitesFilter).ToDataSourceResult(request), JsonRequestBehavior.DenyGet);
      }
  </code></pre>
  
  <p>EDIT: getCriteria should convert the data to a string as shown below: </p>
  
  <pre><code> function getCriteria() {
          var multisel = $("#sites").data("kendoMultiSelect").value().toString();
          return {
              sitesFilter: multisel
          };
  </code></pre>