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 8103047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:24:42+00:00 2026-06-05T23:24:42+00:00

My model is an IEnumerable which I would like to bind to a telerik

  • 0

My model is an IEnumerable which I would like to bind to a telerik mvc grid. Additionally the grid should auto-generate the columns and display everything from my dynamic object.

I found several posts on the telerik forum regarding this topic, like here: http://www.telerik.com/community/forums/aspnet-mvc/general/dynamically-generate-grid-columns.aspx

Unfortunately the result is the same: the grid displays the number of total rows in the footer but no rows are shown.

Any ideas?

Update: I attached a sample project on the telerik forum: http://www.telerik.com/community/forums/aspnet-mvc/grid/auto-generate-grid-columns-with-collection-of-dynamic-objects-as-model.aspx

Update: Here’s sample code to try it out:

Index.cshtml:

@model IEnumerable<dynamic>
@(
    Html.Telerik().Grid(Model).Name("Grid")
                .Columns(columns => columns.AutoGenerate(true))
                .Pageable()
                .Sortable()
                .Groupable()
                .Filterable()
)

HomeController.cs:

public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View(GetStaticData());
        }

        private static IEnumerable<dynamic> GetStaticData()
        {
            dynamic products = new[]
                                    {
                                         new { ProductID = 1, ProductName = "Motor" },
                                         new { ProductID = 2, ProductName = "Converter" },
                                         new { ProductID = 3, ProductName = "Transformer" }
                                    };

            return products; 
        }
    }
  • 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-05T23:24:45+00:00Added an answer on June 5, 2026 at 11:24 pm

    This post seems to say that it’s not supported.
    http://www.telerik.com/community/forums/aspnet-mvc/grid/display-dynamic-objects-in-grid.aspx

    This post says that you can overload the columns binding and passing in the propery name.

    http://www.telerik.com/community/forums/aspnet-mvc/grid/dynamic-view-with-grid.aspx

    Looks like you can use dynamic data but not auto generated columns.

    Thanks,

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use Telerik MVC Grid for an application which requires lots of
I have a 'mylist' model entity which contains a IEnumerable field. I'd like to
I have two IEnumerable collections that I would like to union. One selects news
In ASP.Net MVC I would like to render a different partial view depending on
I am learning MVC and display a list of products in a view. @model
I have a PaartialView declared like this: @model IEnumerable<mvc1.Models.ProjectDetailModel> @using (Html.BeginForm()) <form method=get action=EditProject
I have a list view which is basically receiving a model of type IEnumerable(Thing).
I have this view @model IEnumerable<ViewModelRound2> ... <snip> ... @{ using (Html.BeginForm(new { round1Ring3Bids
my code is too long so sorry :) @model IEnumerable<Osos11.Models.Customers> @Html.DevExpress().GridView( settings => {
I want to create a graph in Excel with the spreadsheet reference. @model IEnumerable<ARTex.Core.Models.Reservation>

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.