title: How to pass a parameter to controller action from my view?
body: <p>I'm trying to call an action from my view passing a paremeter value
  that's my code </p>
  
  <pre><code>  window.location.href = '@Url.Action("Index", "RelatoriosConsolidados")';
  </code></pre>
  
  <p>to pass some parameter I can do this</p>
  
  <pre><code>  window.location.href = '@Url.Action("Index", "RelatoriosConsolidados", 
                            new { param1 = "Value"})';
  </code></pre>
  
  <p>but I cant get a value from a datepicker</p>
  
  <pre><code>@(Html.Kendo().DatePicker()
            .Name("#datepicker")
            .Events(e =&gt; e.Change("change"))
            .Min(new DateTime(2012, 7, 1))
  
            .Value(Model.dataInicial)
            .HtmlAttributes(new { style = "width:150px" })
  
     function change() 
     {
      var x = kendo.toString(this.value(), 'd');
      window.location.href = '@Url.Action("Index", "RelatoriosConsolidados",
       new { data = x })';
     }
  </code></pre>
  
  <p>How can I do that?</p>