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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create simple grid and.....nothing output

Thread ID:





88281 Jul 18,2009 05:12 PM UTC Nov 12,2009 12:12 PM UTC ASP.NET MVC (Classic) 5
Tags: Grid
Eric Swann
Asked On July 18, 2009 05:12 PM UTC

Hello, I have created a simple project to display a very basic flat grid, and nothing is output. I'm sure I'm missing something simple here...but can't figure it out. It doesn't throw an error, it just doesn't render anything. I have verified that my model contains data. In fact I'm just using a simply populated List.

The samples appear to work on my machine, and this follows the sample pretty exactly.

I've attached my sample project. Any ideas?



Eric Swann
Replied On July 19, 2009 12:42 AM UTC

Well, I did figure out the problem, but it's due to the documentation being incorrect. In the grid "getting started", it says to put the following in the view:

"MvcGridServerMode","GridModel" ,column =>{
column.Add(p => p.OrderID);
column.Add(p => p.EmployeeID);
column.Add(p => p.CustomerID);
column.Add(P => P.ShipCountry);
column.Add(p => p.OrderDate);
}); %>

For me, this did not work, I had to add the "=" sign to force output to the response:

<%= Html.Grid(
"MvcGridServerMode","GridModel" ,column =>{
column.Add(p => p.OrderID);
column.Add(p => p.EmployeeID);

Muthukumar L [Syncfusion]
Replied On July 20, 2009 05:14 AM UTC

Hi Eric,

Thanks for evaluating Syncfusion products.

Your code looks correct after modifying two small errors,

1) MVC resource manager should be registered in the master page or the corresponding page.

Please place the following code inside the body tag of the site.master file.

<%Html.RegisterClientMvcResourceManager(); %>

It takes care of loading all script and CSS resources.

2) Equal to(“=”) symbol should be precceded the HTML helper object. Semicolon(“;”) should be removed at the end

This is the syntax for returning the string.


("MvcServ", "GridModel",

column =>


column.Add(role => role.Id).HeaderText("Role Id");

column.Add(role => role.RoleName).HeaderText("Role Name");



Thanks for your patience.



Scott Popovic
Replied On November 11, 2009 02:38 AM UTC

Interesting one. My code was similar to the original post regarding syntax and it worked fine using v7.2 of the grid. I just upgraded to 7.4 and it stopped working. Making the susggested changes fixed the problem for me also.

Balaji M [Syncfusion]
Replied On November 12, 2009 05:43 AM UTC

Hi Scott,

Thank you for your interest in Syncfusion product.

Our Essential Grid have been revamped to provide an enhanced support to extensive client side functionality. The functionalities are same like earlier versions, but the some properties are removed and Changed from Grid.

We would also suggest you to refer the below documentation link for more details.


Please let us know if the reported issue is resolved at your end.

M. Balaji.

Balaji M [Syncfusion]
Replied On November 12, 2009 12:12 PM UTC

Hi Scott,

Our Essential Grid have been revamped to provide an enhanced support to extensive client side functionality.The reported issue raised because of earlier RegisterClientMvcResourceManager . Our current [7.403.0.20] grid uses new MvcStaticResourceManager to register the css and scripts required to display and add functionality to the controls.

Add the Resource Manager to the Site.Master page under the tag as follows.


<%=Html.RegisterStaticResources() %>

Please refer sample from the below location.


Please let us know if the reported issue is resolved at your end.

M. Balaji.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon