This is a migrated thread and some comments may be shown as answers.
Group by error with Int32 column
4 Answers 37 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.
Chris Foster
Top achievements
Rank 1
Chris Foster asked on 10 Mar 2011, 05:26 PM
I am using entity framework and ajax binding the grid to a viewmodel as described here and here.

I get the following error when I add a column of type Int32 and then attempt to group by that column.

Unable to cast the type 'System.Int32' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types.

I have tried both 2010.3.1318 and 2011.1.224

Filtering on this column works as expected.  Any help would be greatly appreciated.

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 11 Mar 2011, 10:49 AM
Hello Chris,

 I'm afraid that I'm unable to recreate such behavior locally. Therefore, it will be appreciated if you can provide a small runnable project in which the mentioned behavior can be observed. This way we will be able to debug the project locally and provide you with  more to-the-point answer.

Regards,
Rosen
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Chris Foster
Top achievements
Rank 1
answered on 24 Mar 2011, 10:36 AM
Apologies for the delay.  Please find project attached.
0
Accepted
Rosen
Telerik team
answered on 24 Mar 2011, 02:11 PM
Hi Chris,

Thank you for sending us the sample project, I was able to observe the error you have described. However, we have managed to address it and you can find attached an internal build which contains the fix. I have update your telerik points too.

Regards,
Rosen
the Telerik team
0
Chris Foster
Top achievements
Rank 1
answered on 24 Mar 2011, 05:11 PM
Thanks Rosen

Great support! 
Tags
Grid
Asked by
Chris Foster
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Chris Foster
Top achievements
Rank 1
Share this question
or