title: Kendo ListView Model vs model used by View hosting the ListView
body: <p>I have an MVC4 view that hosts a Kendo ListView. The ViewModel contains the properties required by the ListView as well as properties used by the main view. Problem is the ListView uses an IEnumerable of the ViewModel and my main view doesn't. Seems I can't have both in 1 view (or can I?).</p>
  
  <p>For example
  The MVC view that loads in the listview as a partial view binds to the following model:</p>
  
  <pre><code>@model app.WebSiteModels.EditPhotoViewModel
  </code></pre>
  
  <p>where EditPhotoViewModel is defined as :</p>
  
  <pre><code>public class EditPhotoViewModel
  {
      public WebsitePhoto WebsitePhoto { get; set; }  //WebsitePhoto is used in my main view
      public IEnumerable&lt;Photo&gt; PhotoList { get; set; }  //the Photo properties are used in my listview
  }
  </code></pre>
  
  <p>The listview binds to an IEnumerable version of EditPhotoViewModel:
  @model IEnumerable</p>
  
  <p>Problem:</p>
  
  <p><code>@model app.WebSiteModels.EditPhotoViewModel</code> doesn't work with the viewlist 
  and
  <code>@model IEnumerable&lt;app.WebSiteModels.EditPhotoViewModel&gt;</code> doesn't work with my main view</p>
  
  <p>I must be missing something pretty basic here - please assist asap as I have been trying to figure this out for a few days now and this is urgent.</p>