friends app sync Users

3 posts, 0 answers
  1. wku
    wku avatar
    13 posts
    Member since:
    Sep 2014

    Posted 17 Sep 2014 Link to this post

    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. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 17 Sep 2014 Link to this post

    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.

     
  3. wku
    wku avatar
    13 posts
    Member since:
    Sep 2014

    Posted 18 Sep 2014 in reply to Anton Dobrev Link to this post

    Hi Anton, thanks for the insight. 
Back to Top