Entity Framework

4 posts, 0 answers
  1. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 30 Jun 2012 Link to this post

    I currently use the Telerik ASP.Net MVC 3 extensions.

    What is the difference between Kendo UI Complete for ASP.NET MVC and Kendo UI Web?

    Do they both support Entity Framework, Linq to Entities, and Data Annotations for the Models?

    In addition, does Kendo UI Mobile support Entity Framework?

    Basically, can you bind the UI Widgets to entities? All I see in th examples is datasource binding to manual entries or some service that serves up data. What about data coming back from a SQL Server database using LINQ and binding it to the widgets?

    Also, in return, to update the database from the widgets....

    Which product (Kendo UI Complete for ASP.NET MVC and Kendo UI Web) is best to use in what kind of scenario?

    If so to any of the above questions, where can I find examples? 
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Jul 2012 Link to this post

    Hello,

    Up to your questions:

    1.  Kendo UI Complete for ASP.NET MVC is our ASP.NET MVC solution based on Kendo UI. You can check this page for more information how it relates to Telerik Extensions for ASP.NET MVC: http://www.kendoui.com/faq/mvc-faq.aspx 
    2. Kendo UI for ASP.NET MVC supports binding to any LINQ-capable provider in the same way as Telerik Extensions for ASP.NET MVC. Kendo UI Web is client-side only library and as such does not support binding to Entity Framework. In fact it is server platform agnostic. 
    3. Kendo UI Mobile is only available as a client-side library. It does not support Entity Framework out of the box.
    4. You can bind the widgets to entities. The data must come from a remote service. You can check the code library projects for some runnable demos: http://www.kendoui.com/code-library/web/grid.aspx 
    5. Kendo UI for ASP.NET MVC is best to use in ASP.NET MVC applications. Kendo UI Web can be used in any applications - ASP.NET, ASP.NET MVC, PHP, Ruby On Rails etc. The examples of Kendo UI for ASP.NET MVC are available in the beta download zip. You can check the online examples of Kendo UI Web here: http://demos.kendoui.com/web/grid/ 

    I hope this helps,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Bill
    Bill avatar
    175 posts
    Member since:
    Apr 2010

    Posted 07 Jul 2012 Link to this post

    Atanis, according your below statement, this is not true from what I'm seeing in the Grid MVVM CRUD example from
    http://www.kendoui.com/code-library/web/grid.aspx 

    1. Kendo UI Web is client-side only library and as such does not support binding to Entity Framework. In fact it is server platform agnostic. 
    I see an Entity Framework model being used.

    I suppose that for the validation, you could also use Data Annotations on the model instead of directly on the grid in the View.

    btw, I don't know if these examples are supposed to be working examples, because I get the following display in the attached file even though my web.config is configured properly. I also noticed that the text is output actually is in the view. Is it supposed to be there?
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 09 Jul 2012 Link to this post

    William, the fact that the example is using Entity Framework does not mean that Kendo UI supports it out of the box as a built-in feature. As I have said many times before Kendo UI is a client-side only library and has no notion of any server-side framework.

    Data annotations are supported only in Kendo UI Complete for ASP.NET MVC.

     Yes, those examples are supposed to be runnable. I just downloaded the project and it runs without an issue on my machine. We tested on a few other PCs as well without a problem. Find attached a screenshot showing how it should look like. Perhaps there is some sort of problem in your configuration. You can check what the web service has returned in Firebug.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
UI for ASP.NET MVC is VS 2017 Ready