Using dynamic method invocations to create a Grid, I get a StackOverflowException:
Working example (no dynamic invocations):
Crashing example (identical, but using dynamic invocation; throws StackOverflowException):
The IEnumerable is a EntityFramework IQueryable to a database table containing a single record.
The above is just a simplified example. What I really want to accomplish is the runtime creation of a Grid<T>(IEnumerable<T>), where the IEnumerable in reality is an IQueryable, so I get excellent performance:
I already filled this issue as a bug, but I want to know if anybody has a smart solution to get what I want without hitting the "bug".
Please note that the Model is of type object, but has a runtime type of IQueryable<T>.
I am very eager to see if anyone has a smart solution...
Version info: VS2010 + Telerik Extensions for ASP.NET MVC Q1 2012, MVC3 binaries, version 2012.1.214.340