Menu from sqlserver using Entity Framework

2 posts, 0 answers
  1. veera
    veera avatar
    1 posts
    Member since:
    Feb 2017

    Posted 02 Mar 2017 Link to this post

    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.
  2. Nencho
    Nencho avatar
    1849 posts

    Posted 06 Mar 2017 Link to this post

    Hello Veera,

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

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

    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.

    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.
Back to Top