I am getting the following error when binding my Model to a Kendo Grid.
A circular reference was detected while serializing an object of type [my type]
What is strange is that the type of the object that is causing the circular reference is not the same as the type of object of the Model for this page... ie:
A circular reference was detected while serializing an object of type [my type]
What is strange is that the type of the object that is causing the circular reference is not the same as the type of object of the Model for this page... ie:
@model IEnumerable<
Models.Type
>
Is not the same type that is causing this error. What could be the problem?
@(Html.Kendo().Grid(Model)
.Name("Grid")
.Columns(columns =>
{
columns.Bound(p => p.Name).Groupable(false);
})
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataSource => dataSource
.Ajax()
.ServerOperation(false)
)
)