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

Fetching remote data

12 Answers 400 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dimitar Shishkov
Top achievements
Rank 1
Dimitar Shishkov asked on 27 Jan 2012, 05:06 PM
Hey guys -
First of all awesome work on a clean and easy-to-use HTML5 mobile UI framework. I have been working with stuff like Sencha, Jquery Mobile and Dojo Mobile, and I am pleased to see how much better your layout look and how much better performance seems to be. I also like the approach of adapting the layout to each platform it runs on so it seems more native.

I am going through the documentation and the examples and trying to figure out what would be the best way to get remote data from a REST API? Any suggestions (most of the other HTML5 mobile frameworks have wrappers for doing JSON-P requests and stuff like that)?

Great work again!
Dimitar

12 Answers, 1 is accepted

Sort by
0
Accepted
Petyo
Telerik team
answered on 28 Jan 2012, 09:37 AM
Hello,

Thanks for the kind words! Highly appreciated. 

Kendo UI Mobile is buit on top of the Kendo UI framework, which, among many other features, includes a DataSource component. The DataSource component may be used  in a stand-alone mode, or widgets (for example, the mobile ListView) can be bound to it.  You can read more about it in the documentation, and review the datasource demos, currently available in the  web section.

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
underscore
Top achievements
Rank 1
answered on 28 Jan 2012, 10:44 AM
Hi Petyo,

looks like also the mobile Kendo UI is getting extremely useful.

Unfortunately the mobile list view is not bound to a remote datasource and also the datasource demos over at the web section do not explain how to hook up the mobile application. At least one working example would be nice.

At present, there is only support for the sliding button for data entry?

Thanks for all.

0
Petyo
Telerik team
answered on 30 Jan 2012, 09:05 AM
Hi Matthias,

The Sushi demo has a datasource fetching remote JSON data, bound to a mobile ListView. You can look through its source. 

Right now the switch is the only mobile form widget. Do not hesitate to share your thoughts regarding other widgets which can be useful in mobile applications.

Kind regards,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dimitar Shishkov
Top achievements
Rank 1
answered on 30 Jan 2012, 06:24 PM
I would just suggest to include the Sushi app in the examples section in the download for Kendo UI Mobile, since it contains so many elements traditionally used in building mobile web applications.

Thanks!
0
Petyo
Telerik team
answered on 01 Feb 2012, 09:35 AM
Hi,

We plan on releasing the Sushi demo application as a public repository in our telerik github account. Will announce that once done. The app code itself is not that much though (and we actually aim at making it even less). 

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Trevor
Top achievements
Rank 1
answered on 02 Feb 2012, 04:55 PM
I may add that fetching your own remote data via Jquery ajax may also be a useful option.  Actually for basic templating (not involving lists), I am using Angularjs (a very powerful MVC and templating engine), and I'm using the built-in Angular XHR service to retrieve my data.

BTW I'd like to see examples of or hear of other people combining Angular with Kendo.  It's becoming my MVC of choice over Knockout.
0
Devon
Top achievements
Rank 1
answered on 07 Aug 2012, 08:53 AM
Hi guys.

The Sushi demo is VERY similar to what I need to do. Where can I get the source code for it?

Basically what I need to do is get a list of customers from my RavenDB database. Each customer has details including an array of packages. Each package has its own details.

I need to populate a list of customers, then when a customer is selected, bring up a new page with a list of their packages.

This is a mobile application.

Can anyone give me some advice or a decent example as I'm having issues connecting to the database.

Thanks!!

Devon.
0
N Mackay
Top achievements
Rank 1
answered on 14 Aug 2012, 01:11 PM
0
Devon
Top achievements
Rank 1
answered on 14 Aug 2012, 01:13 PM
Thanks Norman!!

Much appreciated!!
0
N Mackay
Top achievements
Rank 1
answered on 14 Aug 2012, 02:27 PM
Your welcome.

Word of warning, that demo seems to have a bug. If you add items to the cart and then click on the cart icon in the tabstrip and remove and item the app hangs, you can't navigate to another page.

I've stuck in a ticket to Telerik, I reproduced it on my HTC and the simulator using Chrome.


0
Matt
Top achievements
Rank 1
answered on 19 Jul 2013, 05:29 PM
Hello,
Pardon me, as I am new to Kendo (still fairly new to AngularJS). Can some one please let me know or point me to the sample code where, I can combine AngularJS's xhr ($http/$resource/restangular) with Kendo datasource for a Kendo grid?

Thanks
Matt'M
0
Daniel
Telerik team
answered on 25 Jul 2013, 06:24 AM
Hi,

If you wish to use the Angular request instead of the built-in request the you could set a function as demonstrated in the third example in this documentation topic. An alternative is to get the data and then set it to the dataSource with the data method.

Regards,
Daniel
Telerik
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
Dimitar Shishkov
Top achievements
Rank 1
Answers by
Petyo
Telerik team
underscore
Top achievements
Rank 1
Dimitar Shishkov
Top achievements
Rank 1
Trevor
Top achievements
Rank 1
Devon
Top achievements
Rank 1
N Mackay
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Daniel
Telerik team
Share this question
or