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

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

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 23 Aug 2013, 02:50 PM
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

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 26 Aug 2013, 07:43 AM
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!
Tags
General Discussions
Asked by
Michele
Top achievements
Rank 2
Answers by
T. Tsonev
Telerik team
Share this question
or