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

friends app sync Users

2 Answers 54 Views
Sample Applications
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
wku
Top achievements
Rank 1
wku asked on 17 Sep 2014, 09:42 AM
Hi,


wrt friends app, how do we sync the data for Users similar to what could be done for the Content-Types such as Activities and Comments as shown in the following code snippet.

activities.one('sync', function () {                       
   app.mobileApp.navigate('#:back');
});

activities.sync();

thanks in advance for your kind reply.

2 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 17 Sep 2014, 03:00 PM
Hi,

The Friends app uses the Everlive dialect of the Kendo UI Data Source for loading the Activities. Thus said, the sync() method is provided by the data source. Note that the data source has also a sync event which is also used in the snippet.

As for the users of your app you can declare a data source with 'contentType' property set to 'Users' or retrieve the users directly with the JS SDK of Backend Services.

Depending on the scenario of your app and the operations with users, you may also use the Kendo Observable Object and use it as an update model of a current user. For multiple users you can use the Kendo Observable Array.

Let me know if further questions arise.

Regards,
Anton Dobrev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
wku
Top achievements
Rank 1
answered on 19 Sep 2014, 04:42 AM
Hi Anton, thanks for the insight. 
Tags
Sample Applications
Asked by
wku
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
wku
Top achievements
Rank 1
Share this question
or