Error on serializing Object that contains Collection
Error on serializing Object that contains Collection
![theConartist](https://secure.gravatar.com/avatar/2ef209228e34c9e5ab9ef63c4466ced8/?default=https%3A%2F%2Fvanillicon.com%2F2ef209228e34c9e5ab9ef63c4466ced8_200.png&rating=g&size=120)
Previously, DataTablesResult.Create could handle objects that contains IEnumerable members but now when I execute Create, members now looks like this, Data.aaData[0][0] contains "System.Collections.Generic.List`1[System.String]" as string instead of the collection
This discussion has been closed.
Answers
you have a problem in your transformation in this line. result.Data = result.Data.Transform<Dictionary<string, object>, Dictionary<string, object>>(StringTransformers.TransformDictionary);
Does datatables handle records with rows that have collections? and do the search feature work on the collection?
Collections are a .NET concept as far as I am awesome. DataTables (this Javascript library) expects a DOM or JSON data source.
Allan
The concern is on the DataTablesResult class.
The DataTables Javascript library doesn't obtain such a class. What is
DataTablesResult
? Is it a server-side class (I presume so)? If so, I'd suggest you contact the author of that software.Allan
https://github.com/johannes-brunner/DataTables-ASP.NET-MVC
so this author is a separate party from yours?
Yup - I've not come across that library before. Look alike it might be using the old 1.9 style of server-side processing.
Allan