title: How to load a View as Kendo Window popup on Button Click Event
body: <p>I am trying to load a view in a kendo window <strong>only</strong> on click button’s event.
  Actually, the popup is displayed each time on the load of the base page. I want that that popup loads only on the click event of the button. </p>
  
  <p>Am I missing something? I've also added onclick event in the html button and called openWindow() javascript method. But it didn't work either, apparently something is wrong. </p>
  
  <p>Is it possible to put the server code of kendo Window below in a jquery function? If yes, how? </p>
  
  <pre><code>&lt;% Html.Kendo().Window()
        .Name("partListGridWindow")
        .Width(800)
  .......
  %&gt;
  </code></pre>
  
  <p>Here is my code JQuery:</p>
  
  <pre><code>$(document).ready(function () {
     $("#partListLink")
          .bind("click", function () {
              $("#partListGridWindow").data("kendoWindow").open().center();
          });
  });
  </code></pre>
  
  <p>The kendo Window:
  In the LoadContentFrom I call PartList which is the Action Name that return my View, from Claim Controller.</p>
  
  <pre><code>&lt;% Html.Kendo().Window()
                 .Name("partListGridWindow")
                 .Width(800)
                 .Modal(true)
                 .Title("Part List Info")
                 .Content("Loading Part List Info...")
                 .LoadContentFrom("PartList", "Claim", Model)
                  //.Visible(false)
                 .Draggable()
                 .Resizable()
                 .Render();
  %&gt;
  </code></pre>
  
  <p>Here is the html button:</p>
  
  <pre><code>&lt;a id="partListLink" class="k-button" onclick=openWindow()&gt;&lt;/a&gt;
  </code></pre>
  
  <p>By the way, I saw on the Telerik forum they recommend this formula to hide the window with <strong><em>Visible = false</em></strong> but it should be a way to bypass the load of those windows at the beginning of the base page load.</p>
  
  <p>What to do in the case there are tens or more of popup windows to load?</p>
  
  <p>Any help is greatly appreciated!
  Thank you so much for ur help!</p>