JayData.org

JayData + Kendo UI = Awesomeness

Author: Gábor Dolla February 13th, 2013

,


kendouiKendo UI is a great framework for web and mobile application development. It’s built upon jQuery, it has many nice widgets, clean structures, a great cloud based development environment (Icenium), great user support. It costs some money so it better fits to business application development.

Business apps are all about data manipulations. Kendo UI as a web framework has many widgets to display or alter data and supports xml, json and oData for data transport. Its data transport is pretty generic and requires some manual configuration especially if you need more than just basic CRUD.

What makes Kendo UI great is its concept for DataSource, which is an abstraction for data transport and all Kendo UI widget uses DataSource to load or save data, for sorting, paging, filtering. Not only Kendo UI Web uses it but Kendo UI Mobile and Kendo UI DataViz use it, too! We  created a bridge between JayData and Kendo UI DataSource, with this solution Kendo UI can use local databases, WebApi and has better oData support than the built in version.

We created a few examples on how to Kendo UI Web, Mobile and DataViz with JayData, the examples can be found here

Visit examples

JayData + Kendo UI

The simplest way to use Kendo UI and JayData together is using a ListView:

By using the above code, records from an EntitySet (table) can be shown using a custom template, paging is done on the server or local database side (this is the default).

flowershop

(disclaimer: in this example we used images from the internet, the images are not ours).

DataSource is great so let’s turn the very same data into a DataViz diagram:

The above code produces this barchart:

flowerchart

Why not use the very same data in a mobile app ?

We used Icenium from Telerik for building a PhoneGap application, it looks like this in the emulator:

flowershopmobile1 flowershopmobile2

The sample codes above use a context named mydatabase. This can be of any type that JayData supports (oData, WebApi, Rest, WebSql, IndexedDB, HTML5 localStorage, Facebook, YQL) and Kendo UI does not know about it. The exact same code will work with data from a remote oData server or from a local websql/indexeddb database!

So Kendo UI DataSource is a great concept, JayData and DataSource together is awesome.


,