title: MVC kendo window - Get Data from JavaScript function
body: <p>I have this kendo window in my app</p>
  <pre><code>Html.Kendo().Window()
      .Name(&quot;copyStructure&quot;)
      .Title(&quot;Copy Structure&quot;)
      .Content(&quot;Loading...&quot;)
      .LoadContentFrom(&quot;CopyStructure&quot;, &quot;NewXmlLayout&quot;) // &lt;-- here*
      .Draggable(false)
      .Visible(false)
      .Modal(true)
      .Actions(s =&gt; s.Custom(&quot;&quot;))
      .Events(e =&gt; e.Open(&quot;openWindow&quot;).Close(&quot;closeWindow&quot;))
  </code></pre>
  <p>And I am trying to pass data to the action in the LoadContentFrom() which is returned by a JavaScript function, but I don't know how to do it. I can pass data  like this:</p>
  <pre><code>.LoadContentFrom(&quot;CopyStructure&quot;, &quot;NewXmlLayout&quot;, new { type= &quot;INPUT&quot; })
  </code></pre>
  <p>But is not what I'm looking for.</p>
  <p>The JS function:</p>
  <pre><code>function getInfo() {
          return { type: &quot;INPUT&quot; };
      };
  </code></pre>
  <p>My controller:</p>
  <pre><code> public ActionResult CopyStructure(string type)
      {
          return PartialView();
      }
  </code></pre>