We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting a simple grid to work.

I find the documentation for the grid  all over the place and difficult to understand.

All I want to do is simply return an IEnumerable (from where ever however). Pass it to a property set in the viewmodel and pass that viewmodel to the page. This should be pretty simple and pretty standard practice.



 public class FooViewModel {

    public IEnumerable<Object> someFooCollection { get; set; }


public ActionResult Default() {

      FooViewModel fooViewModel = new FooViewModel();

      fooViewModel.someFooCollection = GetTheIEnumerableData();

      return View( fooViewModel );


@model (VIEWMODELNAMSPACE............)

    ViewBag.Title = "Default";
    Layout = "~/Views/Shared/_Layout.cshtml";

@(Html.Syncfusion().Grid ?????????????????????????????????

What do I put here.

And I especially dont want to be passing ViewData in any way.

1 Reply

AM Abdul Matin M Syncfusion Team July 4, 2013 12:37 PM UTC

Hi William,


Thanks for your interest in Syncfusion products.


We have created a sample to your requirement in the incident ID #110310. Could you please follow up the incident.


Could you please use that sample and get back to us if you have any queries.



Let us know if you have any concerns.




Abdul Matin M

Live Chat Icon For mobile
Up arrow icon