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

Kendo is not Working

1 Answer 1798 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dayne
Top achievements
Rank 1
Dayne asked on 07 Jul 2016, 03:59 PM

Hi, 

I have a problem with kendo. Yesterday I've installed Kendo.MVC library from NuGet pagckages, do all the configurations established in the web regarding Kendo and Razor, and it just don seem to work.

 

Web.Config configuration:

<system.web.webPages.razor>
    <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <pages pageBaseType="System.Web.Mvc.WebViewPage">
      <namespaces>
        <add namespace="System.Web.Mvc" />
        <add namespace="System.Web.Mvc.Ajax" />
        <add namespace="System.Web.Mvc.Html" />
        <add namespace="System.Web.Optimization"/>
        <add namespace="System.Web.Routing" />
        <add namespace="Kendo.Mvc.UI" />
        <add namespace="FNASystem" />
      </namespaces>
    </pages>
  </system.web.webPages.razor>

 

In the index.cshtml file:

@(Html.Kendo().Menu()
                  .SecurityTrimming(false)
)

 

All the documentation that I found said that this should work, but the Kendo() function appears underline in red and with an error message that said "HtmlHelper<dynamic> does not contains a definition for 'Kendo' are you missing a using directive or a reference?", so, I do this In the index.cshtml file:

@using Kendo.Mvc.UI

@(Html.Kendo().Menu()
                  .SecurityTrimming(false)
)

But the @using Kendo.Mvc.UI part said "the using directive is not necesary, it previously appears in this namespace."

So, can yo help me with this issue?

Best regards

 

dhruv
Top achievements
Rank 1
commented on 07 Sep 2022, 01:17 PM

how you solve this error?

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 11 Jul 2016, 09:07 AM | edited on 09 Sep 2022, 09:40 AM

Hello Dayne,

Can you please make sure that the NuGet package and the MVC version in the project are matching, and you have followed all of the steps, listed in the following section of our documentation (or the one for the corresponding MVC version):

https://docs.telerik.com/aspnet-mvc/getting-started/first-steps

If the problem persists, please send us an isolated runnable project, so we can investigate what might be causing it.

Regards,
Dimiter Topalov
Telerik by Progress

Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
dhruv
Top achievements
Rank 1
commented on 07 Sep 2022, 01:18 PM

i still get this error can you suggest the solutions
Ivan Danchev
Telerik team
commented on 09 Sep 2022, 09:44 AM

Hello Dhruv,

Follow the steps from this article: https://docs.telerik.com/aspnet-mvc/getting-started/setup-with-nuget which guides you through setting up Telerik UI for ASP.NET MVC with NuGet.

If you face any issues with a particular step, please attach a sample project that demonstrates the error you are getting.

Tags
General Discussions
Asked by
Dayne
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or