I have an data model for a recursive parent-child relationship like this:
public class ActivityCategory { public int CategoryID { get; set; } public string CategoryName { get; set; } public int? ParentCategoryID { get; set; } public ActivityCategory Parent { get; set; }...
} The parent may be null. I'm trying to set my grid up like this:@(Html.Kendo().Grid(Model) .Name("ActivityCategoryGrid") .Columns(columns => { columns.Bound(resource => resource.CategoryName).Title("Name"); columns.Bound(r => r.Parent != null ? r.Parent.CategoryName : "");which fails withBound columns require a field or property access expression.
How should I handle this?