Refresh current view

2 posts, 0 answers
  1. Ibrahim Khan
    Ibrahim Khan avatar
    2 posts
    Member since:
    Jun 2015

    Posted 06 Apr Link to this post

    I am using telerik appbuilder for developing a hybrid app. How can I refresh current view on click of a button?
  2. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 11 Apr Link to this post

    Hi,

    Thanks for posting to the Telerik Developer Forums.

    Depending in the UI framework you are using in your app, you may use its integrated tools to do this.

    For example, if you are using the Kendo Hybrid UI and its MVVM framework in a view that is bound to a data or to a property of a view model is refreshed if any of the data or UI properties changes.

    Let's say, for instance, that you have a list view bound to a data source - invoking the read method of the  data source will automatically refresh the list view too.

    In an implementation without any UI framework, you should be able to use the web approach like:
    window.location.reload(true);
     I hope that this answers your question.


    Regards,
    Anton Dobrev
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top