[CLOSED] Problems with RenderExtPartial

  1. #1

    [CLOSED] Problems with RenderExtPartial

    Hi,

    I want to render a ext partial view in my project (ASP.NET MVC3 with Razor view engine). When I run the project, I got the following error.

    "Unable to cast object of type 'System.Web.Mvc.RazorView' to type 'System.Web.Mvc.WebFormView'."

    Here is how I render the partial view:

    @Html.RenderExtPartial("test")
    I looked at the source code, and find this line in PartialViewRenderer.cs throw the exception.

    string path = ((WebFormView)view).ViewPath;
    Because I am using the Razor view engine, the casting fail. It looks like the partial views only available for the web form view engine. Any ideas on when it will work for Razor? Thanks.
    Last edited by Daniil; Feb 20, 2012 at 8:53 AM. Reason: [CLOSED]
  2. #2
    Hi,

    We are working on partial rendering support for Razor engine right now, i hope that it will be included to Ext.Net 2.0 beta
  3. #3
    Good to know. Thanks.

Similar Threads

  1. Can not apply layout using RenderExtPartial
    By zhangjiagege in forum 1.x Help
    Replies: 2
    Last Post: Mar 04, 2012, 2:21 PM
  2. RenderExtPartial Issue
    By zhangjiagege in forum 1.x Help
    Replies: 3
    Last Post: Jan 21, 2012, 2:02 PM
  3. [CLOSED] Need Guidance with RenderExtPartial
    By paulc in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Mar 15, 2011, 8:13 PM
  4. [CLOSED] Problems with RenderExtPartial
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Feb 09, 2011, 2:44 PM
  5. [CLOSED] [1.0] MVC and Html RenderExtPartial
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 24, 2010, 7:35 PM

Posting Permissions