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

    Hello,
    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?
    Thanks
    Paolo
  2. T. Tsonev
    Admin
    T. Tsonev avatar
    2815 posts

    Posted 26 Aug 2013 Link to this post

    Hello,

    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:

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


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

    I hope this helps.

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