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

Menu from sqlserver using Entity Framework

1 Answer 135 Views
Menu
This is a migrated thread and some comments may be shown as answers.
veera
Top achievements
Rank 1
veera asked on 02 Mar 2017, 01:23 PM

Hello Sir,

 

I am try to fetch dynamic menu from sql server, i am using northwind database,i am using your mvc model binding code but i am getting below error

help me please

 

The model item passed into the dictionary is of type 'System.Data.Entity.DbSet`1[TelerikMvcApp3.EFwork.Category]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[TelerikMvcApp3.Models.Category]'.

thank you.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 06 Mar 2017, 07:42 AM
Hello Veera,

Did you have the chance to check our documentation article regarding the model binding approach for the Menu widget?

http://docs.telerik.com/aspnet-mvc/helpers/menu/overview#model-binding

In addition, our online Model Binding demo is also using the Northwind database, along with Entity Framework -

http://demos.telerik.com/aspnet-mvc/menu/modelbinding


You can even download our online demos from your account, in order to get a local runnable version of our online site. Hence, you can locally check the entire implementation and compare it with ours, in attempt to find what is causing the problem.

Regards,
Nencho
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Menu
Asked by
veera
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or