Problem with Kendo() namespace when a view is inside an Area

2 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 23 Aug 2013 Link to this post

    in my new project I've defined an Area called Admin,I've added a View and started coping the code from another view it's on the main View folder.... I can' access to the Kendo namespace when doing @(Html.Kendo() ... if I copy the same view on the main View folder it's ok...any suggestion?
  2. T. Tsonev
    T. Tsonev avatar
    2815 posts

    Posted 26 Aug 2013 Link to this post


    View areas (including the default one) do not share their web.config files. You need to copy the Kendo UI namespace registrations to the web.config file for the new area.
    For example:

                <add namespace="Kendo.Mvc.UI" />

    Check out the main Views/web.config file for reference.

    I hope this helps.

    T. Tsonev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top