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.
Unfortunately, activation email could not send to your email. Please try again.

Getting a simple grid to work.

Thread ID:

Created:

Updated:

Platform:

Replies:

109794 Jul 3,2013 10:39 AM Jul 4,2013 08:37 AM ASP.NET MVC (Classic) 1
loading
Tags: Grid
William Humphreys
Asked On July 3, 2013 10:39 AM

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.

i.e.

-----------------------------------------------------------------------------------------------------

 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.



Abdul Matin M [Syncfusion]
Replied On July 4, 2013 08:37 AM

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.

 

 

Regards,

Abdul Matin M


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;