This is a migrated thread and some comments may be shown as answers.
Serialization issue when using Ajax editing mode
0 Answers 91 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
andy
Top achievements
Rank 1
andy asked on 03 Dec 2010, 09:32 PM
This may not be directly related to the Telerik Grid, but I am wondering if you have some prescriptive guidance as a lot of people may encounter the issue related to serialization of entities when there is bi-directional relationship between the entities (customer.orders & order.customer).

When using Ajax editing mode, the serialization throws an error: A circular reference was detected while serializing an object of type 'System.Data.Entity.DynamicProxies.Customer_......'.

Do you have any suggestions as to how to handle this? I know it is possible to get around this issue by returning a new anonymous typed projection, but that defeats benefits of returning IQueryable.
Tags
Grid
Asked by
andy
Top achievements
Rank 1
Share this question
or