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

Entity Framework

3 Answers 879 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 2
Bill asked on 30 Jun 2012, 11:56 PM
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? 

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Jul 2012, 08:32 AM
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!
0
Bill
Top achievements
Rank 2
answered on 07 Jul 2012, 08:31 PM
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?
0
Atanas Korchev
Telerik team
answered on 09 Jul 2012, 07:32 AM
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!
Tags
General Discussions
Asked by
Bill
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Bill
Top achievements
Rank 2
Share this question
or