Last post Sep 04, 2015 12:49 AM by abid.abk
Aug 14, 2015 06:50 AM|abid.abk|LINK
I am using kendo grid for binding and displaying data from database. but Json formatted data of Product table record getting rendered on browser. I am expecting data in kendo Grid.
this is my controller code
public ActionResult Products_Read([DataSourceRequest]DataSourceRequest request)
using (var northwind = new NorthwindEntities())
IQueryable<Product> products = northwind.Products;
DataSourceResult result = products.ToDataSourceResult(request);
and this is my view code
.DataSource(dataSource => dataSource
.Read(read => read.Action("Products_Read", "Home"))
columns.Bound(product => product.ProductID);
columns.Bound(product => product.ProductName);
columns.Bound(product => product.UnitsInStock);
Please help me to resolve the same.
Aug 14, 2015 09:40 AM|Weibo Zhang|LINK
Welcome to ASP.NET Forums.
I think you could refer to the following article, it provides you very detailed tutorial to operate the 3rd party tool “kendo grid”, especially the “Creating grid from JSON Data” section would be very helpful.
I hope it’s useful to you.
Aug 18, 2015 04:50 PM|Tathagat|LINK
You pasted the same link. It does not work by the way
Aug 19, 2015 09:00 AM|Weibo Zhang|LINK
I’m very sorry for my mistake. The right URL that I wanted to provide is below.
Sep 04, 2015 12:49 AM|abid.abk|LINK
Thank you very much Weibo Zhang.