This project is read-only.

System.NotSupportedException: Expression not supported by grid

Mar 5, 2014 at 5:04 PM
Seems like I need to pass in an enumerated model, and cannot use an enumeration within a model with the grid. Keeps blowing up with Expression not supported.

public class Foo
    public string Title { get; set; }
    public string Description { get; set; }
    public List<string> Subscribers { get; set; }
    public ActionResult AddConfiguration()
        Foo f = new Foo { Title = "CLM", Description= "Hot" };
        f.Subscribers = new List<string>();
        return View(f);
@model Foo
@Html.Grid(Model.Subscribers).Columns(columns =>
           columns.Add(subscriber => subscriber).Titled("Custom column title").SetWidth(110);
Mar 12, 2014 at 4:11 AM

It seems that grid does not support collection of primitives (strings, bool, int etc) I created an issue
Mar 12, 2014 at 4:12 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.