Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8954379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:18:22+00:00 2026-06-15T14:18:22+00:00

I have an MVC4 view that hosts a Kendo ListView. The ViewModel contains the

  • 0

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?).

For example
The MVC view that loads in the listview as a partial view binds to the following model:

@model app.WebSiteModels.EditPhotoViewModel

where EditPhotoViewModel is defined as :

public class EditPhotoViewModel
{
    public WebsitePhoto WebsitePhoto { get; set; }  //WebsitePhoto is used in my main view
    public IEnumerable<Photo> PhotoList { get; set; }  //the Photo properties are used in my listview
}

The listview binds to an IEnumerable version of EditPhotoViewModel:
@model IEnumerable

Problem:

@model app.WebSiteModels.EditPhotoViewModel doesn’t work with the viewlist
and
@model IEnumerable<app.WebSiteModels.EditPhotoViewModel> doesn’t work with my main view

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T14:18:23+00:00Added an answer on June 15, 2026 at 2:18 pm

    You can bind the ListView to the PhotoList property. Here is how:

    @model app.WebSiteModels.EditPhotoViewModel
    
    @(Html.Kendo().ListView(Model.PhotoList).Name("photoList"))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a razor view in an MVC4 project that treats the same input
I have an MVC4 site with a nice customError page that works great if
I have 3 mvc4 sites. Site 1 'www.mydomain.com' is a marketing site that allows
I have the following Javascript and Html code that works fine in an MVC4
I have an ASP.Net MVC 4 view that is supposed to conditionally render an
I have an MVC4 application been developed in VS2012 that uses forms authentication. [authentication
I have a razor .cshtml view in MVC4 and I want to print a
I have created a custom razor helper in my MVC4 Web application that I
We have an existing MVC2 project that we just upgraded to MVC4 following first
I am working with a ASP.NET MVC4 application. I have created a view model

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.