This is a migrated thread and some comments may be shown as answers.
Extensions in VS2010 Beta 2
2 Answers 73 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.
Niels
Top achievements
Rank 1
Niels asked on 07 Nov 2009, 03:26 PM
Tried to recompile the source in VS2010 Beta 2. Few minor issues about ambigiuty of types that are added to the .Net 4.0 Framework. Can be resolved by renaming the telerik ones. Did not try to replace the telerik ones with their standaard .Net counterparts, will try that later.

After changing alle the version refs in the web.config in the examples the demo will start. Only one problem problem I have not resolved yet. When Model is used as parameter in a view (fe. Html.Telerik().Grid<Order>(Model) in firstlook.aspx for Grid). An Compilation Error will occur:

Compiler Error Message: CS1502: The best overloaded method match for 'Telerik.Web.Mvc.UI.ViewComponentFactory.Grid<Telerik.Web.Mvc.Examples.Models.Order>(Telerik.Web.Mvc.Examples.Models.Order)' has some invalid arguments

Any suggestions?

Niels

2 Answers, 1 is accepted

Sort by
0
Accepted
Kazi Manzur Rashid
Telerik team
answered on 09 Nov 2009, 08:47 AM
Hi Niels,

If you complile, pls set the CLR40=true, this will exclude the DataAnnotation Attributes that are introduced in the .NET 4.0.

Did you check the following thread which is releated with the Grid Syntax, if it does not work, could you please post the code snippet, so that we can take a look.

http://www.telerik.com/community/forums/aspnet-mvc/general/mvc-grid-binding-for-q3-release.aspx

Sincerely yours,
Kazi Manzur Rashid
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Niels
Top achievements
Rank 1
answered on 09 Nov 2009, 01:48 PM
Hi Kazi,

Thanks for your reply. CLR40 works for DataAnnotations but not for the IEnumerator extension zip. When I mark this method with CLR40 it works like a charm.

Still have to look at the grid issue will follow up on this later.

Kind Regards,

Niels 

edit: The problem was indeed same problem as stated in the thread Kazi mentioned. Just cast Model to IEnumerable<Order> and.. magic.
Tags
General Discussions
Asked by
Niels
Top achievements
Rank 1
Answers by
Kazi Manzur Rashid
Telerik team
Niels
Top achievements
Rank 1
Share this question
or