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

[Solved] Grid example with Razor engine

1 Answer 98 Views
Documentation and tutorials
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Russell
Top achievements
Rank 1
Russell asked on 11 Jul 2011, 10:53 PM
I'm having trouble working the Grid example code using the latest MVC templates.

I have a Northwind datacontext that works in a unit test.

The directions say to make the page strongly typed by

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
    Inherits="System.Web.Mvc.ViewPage<IEnumerable<Order>>" %>


I thought in the Razor page that would translate to

@model

 

IEnumerable<TelerikMvcApplication1.Models.Order>

 


but that results in an http 404 resource not found error.  I've tried some other variations but nothing works?


1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 Jul 2011, 07:35 AM
Hello Russell,

 I am not sure what may be causing the 404 error. Could you please clarify when this happens? 

Regards,
Atanas Korchev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Documentation and tutorials
Asked by
Russell
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or