This is a migrated thread and some comments may be shown as answers.

[Solved] Ajax Grid Example Not Working in MVC 2.0?

4 Answers 186 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
brandon
Top achievements
Rank 1
brandon asked on 23 Nov 2009, 03:12 PM
I receive the following error message on the ajax binding grid controller when converting the sample project to the latest MVC 2.0 beta:

Error! The requested URL "/Home/_AjaxBinding" returned 500 - Internal Server Error

Is there a work-around?

4 Answers, 1 is accepted

Sort by
0
brandon
Top achievements
Rank 1
answered on 23 Nov 2009, 08:28 PM
MVC 2.0 turned out not to be the cause.  I am still trying to figure out the exact error message from the 500 error code to figure out what it is but I did get the examples to work under MVC 2.0 fine.
0
Kazi Manzur Rashid
Telerik team
answered on 23 Nov 2009, 10:38 PM
Hello Brandon Kaid,

Did you check the VS2010 example in MVC2 in the codeplex:

 http://telerikaspnetmvc.codeplex.com/SourceControl/changeset/view/35690

If it still does not work, can please post us the exception message. You can try firebug for catching the ajax exception.

All the best,
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
Maxim Lutsan
Top achievements
Rank 1
answered on 01 Dec 2009, 03:56 PM
Hello Kazi Manzur Rashid,

I am just try to launch components on MVC 2 beta and get exception in
GridActionBindingContext.cs on line 44:
return ValueProvider.ValueOf<int>(Prefix(GridUrlParameters.PageSize)); 

This exception thrown because in MVC 2 there is ValueProvider of type IValueProvider, but in version 1 it is just dictionary.

Is there a solution to this problem?
0
Kazi Manzur Rashid
Telerik team
answered on 02 Dec 2009, 10:44 PM
Hello Maxim Lutsan,

Currently we are working on to make it compatible with the MVC2 and I am sure before the MVC2 RTM there will also be some changes, so till you have to wait.

Kind regards,
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.
Tags
Grid
Asked by
brandon
Top achievements
Rank 1
Answers by
brandon
Top achievements
Rank 1
Kazi Manzur Rashid
Telerik team
Maxim Lutsan
Top achievements
Rank 1
Share this question
or